From 1a510ad8a8d82cbe1a6181a87dee214f154d3486 Mon Sep 17 00:00:00 2001 From: Kevin Fodness <2650828+kevinfodness@users.noreply.github.com> Date: Mon, 1 Jul 2024 22:36:05 -0400 Subject: [PATCH] Split PHP 8.1 tests into separate job --- .github/workflows/all-pr-tests.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/all-pr-tests.yml b/.github/workflows/all-pr-tests.yml index c07a9ae2..1894db13 100644 --- a/.github/workflows/all-pr-tests.yml +++ b/.github/workflows/all-pr-tests.yml @@ -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: @@ -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'