Skip to content

Commit

Permalink
1.x | GH Actions: remove the trial run against PHPUnit 10
Browse files Browse the repository at this point in the history
The 2.x series supports PHPUnit 10. This no longer needs to be tested on the 1.x branch.
  • Loading branch information
jrfnl committed Nov 20, 2023
1 parent f1f7e15 commit b6638cb
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,6 @@ jobs:
coverage: false
experimental: true

- php: '8.1'
phpunit: '^10.0'
coverage: false
experimental: true
- php: '8.2'
phpunit: '^10.0'
coverage: false
experimental: true

name: "Tests: PHP ${{ matrix.php }} - PHPUnit: ${{matrix.phpunit}}"

continue-on-error: ${{ matrix.experimental }}
Expand Down Expand Up @@ -131,18 +122,13 @@ jobs:
custom-cache-suffix: $(date -u "+%Y-%m")

- name: Run the unit tests
if: ${{ matrix.coverage == false && matrix.phpunit != '^10.0' }}
if: ${{ matrix.coverage == false }}
run: composer test

- name: Run the unit tests with code coverage
if: ${{ matrix.coverage == true && matrix.phpunit != '^10.0' }}
if: ${{ matrix.coverage == true }}
run: composer coverage

- name: Trial run the unit tests against PHPUnit 10.0
if: ${{ matrix.phpunit == '^10.0' }}
continue-on-error: true
run: composer test

# Uploading the results with PHP Coveralls v1 won't work from GH Actions, so switch the PHP version.
- name: Switch to PHP 7.4
if: ${{ success() && matrix.coverage == true && ( matrix.php == '5.4' || startsWith( matrix.php, '8' ) ) }}
Expand Down

0 comments on commit b6638cb

Please sign in to comment.