Skip to content

Commit

Permalink
Useless tests were not reported for before PHPUnit 6, so it doesn't u…
Browse files Browse the repository at this point in the history
…nderstand the CLI argument
  • Loading branch information
gsherwood committed Feb 1, 2021
1 parent 9f6385e commit 2da6904
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,14 @@ jobs:
- name: 'PHPUnit: remove config file'
run: rm phpunit.xml.dist

# Useless tests were not reported for before PHPUnit 6, so it doesn't
# understand the CLI argument.
- name: 'PHPUnit: run the tests'
if: ${{ matrix.php < 7.0 }}
run: vendor/bin/phpunit tests/AllTests.php --bootstrap=tests/bootstrap.php

- name: 'PHPUnit: run the tests, dont report useless'
if: ${{ matrix.php >= 7.0 }}
run: vendor/bin/phpunit tests/AllTests.php --bootstrap=tests/bootstrap.php --dont-report-useless-tests

- name: 'PHPCS: check code style without cache, no parallel'
Expand Down

0 comments on commit 2da6904

Please sign in to comment.