Skip to content

Commit

Permalink
Split PHP 8.1 tests into separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinfodness committed Jul 2, 2024
1 parent 37a3b85 commit 1a510ad
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/all-pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ jobs:
php-version: '8.2'
wordpress-host: 'false'

pr-tests-php-8-1:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
timeout-minutes: 10
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

steps:
- uses: actions/checkout@v4

- name: Run PHPUnit Only on PHP 8.1
uses: alleyinteractive/action-test-php@feature/issue-1/allow-phpunit-setup-own-tests
with:
Expand All @@ -43,12 +54,3 @@ jobs:
skip-audit: 'true'
test-command: 'composer run-script phpunit'
wordpress-host: 'false'

- name: Run PHPUnit Only on PHP 8.0
uses: alleyinteractive/action-test-php@feature/issue-1/allow-phpunit-setup-own-tests
with:
install-wordpress: 'false'
php-version: '8.0'
skip-audit: 'true'
test-command: 'composer run-script phpunit'
wordpress-host: 'false'

0 comments on commit 1a510ad

Please sign in to comment.