Skip to content

Commit

Permalink
Merge pull request #19 from eclipxe13/development
Browse files Browse the repository at this point in the history
Upload code coverage to Scrutinizer
  • Loading branch information
eclipxe13 authored Sep 4, 2021
2 parents 5fd4ad4 + 790f42c commit 6436ddd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: php-cs-fixer fix --dry-run --format=checkstyle | cs2pr

- name: Tests (phpunit with code coverage)
run: vendor/bin/phpunit --testdox --verbose --coverage-xml=build/coverage --log-junit=build/coverage/junit.xml
run: vendor/bin/phpunit --testdox --verbose --coverage-clover=build/coverage-clover.xml --coverage-xml=build/coverage --log-junit=build/coverage/junit.xml

- name: Code analysis (phpstan)
run: phpstan analyse --no-progress --verbose
Expand All @@ -61,6 +61,13 @@ jobs:
- name: Mutation testing analysis
run: infection --skip-initial-tests --coverage=build/coverage --no-progress --no-interaction --logger-github

# see https://github.com/marketplace/actions/action-scrutinizer
- name: Upload code coverage to scrutinizer
uses: sudo-bot/action-scrutinizer@latest
with:
cli-args: "--format=php-clover build/coverage-clover.xml"
continue-on-error: true

build: # this job runs tests on all php supported versions

name: PHP ${{ matrix.php-versions }} (tests)
Expand Down
6 changes: 2 additions & 4 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,5 @@ build:
tests:
override:
- php-scrutinizer-run --enable-security-analysis
- command: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
coverage:
file: coverage.clover
format: clover
tools:
external_code_coverage: true

0 comments on commit 6436ddd

Please sign in to comment.