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 /.github | |
parent | 68c5d7e1973f74e0b8d7740c90e54c0e9cdd718d (diff) | |
download | wcms-f9173c85ca612ad6cd90417ad423a9c9f94a1e99.tar.gz wcms-f9173c85ca612ad6cd90417ad423a9c9f94a1e99.zip |
tests: add coverage report and badge
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/php.yml | 12 |
1 files changed, 10 insertions, 2 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 |