Skip to content

Commit

Permalink
Fix the Code Climate coverage report (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Finesse authored Oct 31, 2019
1 parent 7f24473 commit 256484f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Checkout
uses: actions/checkout@master
- name: Install PHP
uses: shivammathur/setup-php@1.4.3
uses: shivammathur/setup-php@1.4.4
with:
php-version: ${{ matrix.php-version }}
extension-csv: dom, mbstring
Expand All @@ -35,13 +35,14 @@ jobs:
composer install
- name: Test and publish code coverage
if: matrix.report-coverage
uses: paambaati/codeclimate-action@v2.2.1
uses: paambaati/codeclimate-action@v2.3.0
env:
# Get it on https://codeclimate.com/repos/{repo id}/settings/test_reporter
CC_TEST_REPORTER_ID: b9948835cb7b1f7ad91577de6eab208a107192fa1f536c06dd8b22e23dfcb31c
with:
# The report file must be there, otherwise Code Climate won't find it
coverageCommand: php vendor/bin/phpunit --coverage-text --coverage-clover ./clover.xml
debug: true
- name: Test
if: "!matrix.report-coverage"
run: php vendor/bin/phpunit --coverage-text

0 comments on commit 256484f

Please sign in to comment.