Skip to content

Commit

Permalink
Disable coverage on PHP 8
Browse files Browse the repository at this point in the history
  • Loading branch information
lepiaf committed Feb 1, 2021
1 parent c079cba commit 3618510
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,20 @@ jobs:
run: "composer update --no-interaction --no-progress --prefer-dist --prefer-stable --prefer-lowest"
if: "${{ matrix.deps == 'low' }}"

- name: "Run PHPUnit"
- name: "Run PHPUnit with coverage"
run: "vendor/bin/phpunit --coverage-clover=coverage.xml"
if: "${{ matrix.php-version != '8.0' }}"

- name: "Run PHPUnit without coverage"
run: "vendor/bin/phpunit"
if: "${{ matrix.php-version == '8.0' }}"

- name: "Upload coverage file"
uses: "actions/upload-artifact@v2"
with:
name: "phpunit-${{ matrix.php-version }}.coverage"
path: "coverage.xml"
if: "${{ matrix.php-version != '8.0' }}"

upload_coverage:
name: "Upload coverage to Codecov"
Expand Down

0 comments on commit 3618510

Please sign in to comment.