Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.x | GH Actions: remove the trial run against PHPUnit 10 #142

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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