diff options
author | n-peugnet <n.peugnet@free.fr> | 2020-04-21 22:24:44 +0200 |
---|---|---|
committer | Vincent Peugnet <33429034+vincent-peugnet@users.noreply.github.com> | 2020-04-22 22:19:35 +0200 |
commit | f9173c85ca612ad6cd90417ad423a9c9f94a1e99 (patch) | |
tree | 485dd68949f94b6ed92521d401f23b48b378c463 | |
parent | 68c5d7e1973f74e0b8d7740c90e54c0e9cdd718d (diff) | |
download | wcms-f9173c85ca612ad6cd90417ad423a9c9f94a1e99.tar.gz wcms-f9173c85ca612ad6cd90417ad423a9c9f94a1e99.zip |
tests: add coverage report and badge
-rw-r--r-- | .github/workflows/php.yml | 12 | ||||
-rw-r--r-- | README.md | 11 |
2 files changed, 17 insertions, 6 deletions
diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index a7414b5..479a9f9 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -22,8 +22,8 @@ jobs: - name: PHPStan xml report if: always() - run: > - mkdir -p build/phpstan && + run: | + mkdir -p build/phpstan vendor/bin/phpstan analyse --no-progress --error-format=checkstyle > build/phpstan/checkstyle.xml - name: Analysis Publisher @@ -36,3 +36,11 @@ jobs: --report-type=checkstyle --path=**/build/phpcs/checkstyle.xml --report-type=checkstyle --path=**/build/phpstan/checkstyle.xml --publisher=github_check + + - name: Coveralls publish + if: always() + env: + COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + composer require --quiet --no-interaction cedx/coveralls + vendor/bin/coveralls build/phpunit/cov.xml @@ -1,6 +1,6 @@ # W-CMS -![github status] ![code style] ![phpstan level] +[![build][github]][action] ![style][codestyle] ![phpstan][phpstan] [![coverage][coverage]][coveralls] W is a lightweight CMS tool, meant to help you design a website using a unique approach. It's targeting artists, or experimental projects. @@ -178,6 +178,9 @@ Then, to make the release, run the following command: 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 +[github]: https://github.com/vincent-peugnet/wcms/workflows/build/badge.svg +[action]: https://github.com/vincent-peugnet/wcms/actions +[codestyle]: https://img.shields.io/badge/code%20style-PSR12-brightgreen +[phpstan]: https://img.shields.io/badge/phpstan-level%205-green +[coverage]: https://coveralls.io/repos/github/vincent-peugnet/wcms/badge.svg?branch=master +[coveralls]: https://coveralls.io/github/vincent-peugnet/wcms?branch=master
\ No newline at end of file |