diff options
author | Nicolas Peugnet <n.peugnet@free.fr> | 2020-04-21 01:53:13 +0200 |
---|---|---|
committer | Vincent Peugnet <33429034+vincent-peugnet@users.noreply.github.com> | 2020-04-21 14:56:53 +0200 |
commit | 3355532be69a1c11a0637b1dfc994748b5de558f (patch) | |
tree | c12b12489496afb33524fc114f76a9b03f9b3280 | |
parent | e5f59d39268b552c6b8416d5f0d8294ec19e26f3 (diff) | |
download | wcms-3355532be69a1c11a0637b1dfc994748b5de558f.tar.gz wcms-3355532be69a1c11a0637b1dfc994748b5de558f.zip |
tests: add github actions
-rw-r--r-- | .github/workflows/php.yml | 27 | ||||
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | README.md | 6 | ||||
-rw-r--r-- | composer.json | 2 | ||||
-rw-r--r-- | composer.lock | 2 |
5 files changed, 37 insertions, 2 deletions
diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml new file mode 100644 index 0000000..defd044 --- /dev/null +++ b/.github/workflows/php.yml @@ -0,0 +1,27 @@ +name: build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + php-build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Validate composer.json and composer.lock + run: composer validate + + - name: Install dependencies + run: composer install --prefer-dist --no-progress --no-suggest + + # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit" + # Docs: https://getcomposer.org/doc/articles/scripts.md + + - name: Run test suite + run: make check -k @@ -86,6 +86,8 @@ dist/w_cms_%.zip: all zip -d $@ \ "$(js_src_dir)/*" \ $(js_srcmaps) \ + ".github*" \ + tests \ .default.env \ .gitignore \ .release-it.json \ @@ -1,5 +1,7 @@ # W-CMS +![github status] ![code style] ![phpstan level] + W is a lightweight CMS tool, meant to help you design a website using a unique approach. It's targeting artists, or experimental projects. To have a better idea of what W can do, you can check out the [User manual](MANUAL.md), or dicover the [ideas](#ideas) behind this specific tool. @@ -175,3 +177,7 @@ Then, to make the release, run the following command: make release To only build the release zip, simply run `make dist`. This will create a zip file in `dist/` of the current version. + +[github status]: https://github.com/vincent-peugnet/wcms/workflows/build/badge.svg +[code style]: https://img.shields.io/badge/code%20style-PSR12-brightgreen +[phpstan level]: https://img.shields.io/badge/phpstan-level%205-green
\ No newline at end of file diff --git a/composer.json b/composer.json index 4cd706f..072f4e2 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "w-cms", + "name": "w-cms/w-cms", "description": "point'n think", "require": { "php": ">=7.2.0", diff --git a/composer.lock b/composer.lock index 62609f9..ffc81ad 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "content-hash": "62366ccdb1bd41c988a46000a64bffd6", + "content-hash": "fa8ab175273737ddd7b8aed0ce7bc82f", "packages": [ { "name": "altorouter/altorouter", |