Skip to content

Commit

Permalink
Split single site and multisite unit tests into separate GH Actions j…
Browse files Browse the repository at this point in the history
…obs.
  • Loading branch information
felixarntz committed Jul 21, 2024
1 parent 5430d9f commit 3a2181b
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/php-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ concurrency:

jobs:
php-test:
name: PHP ${{ matrix.php }} - WP ${{ matrix.wordpress }}${{ matrix.experimental && ' (experimental)' || '' }}
name: PHP ${{ matrix.php }} - WP ${{ matrix.wordpress }} - ${{ matrix.multisite && 'Multisite' || 'Single site' }}${{ matrix.experimental && ' (experimental)' || '' }}
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
Expand All @@ -52,14 +52,28 @@ jobs:
- '8.1'
- '8.2'
wordpress: [ 'latest' ]
multisite: [ false, true ]
experimental: [false]
include:
- php: '8.0'
wordpress: '6.0'
multisite: false
- php: '8.0'
wordpress: '6.0'
multisite: true
- php: '8.0'
wordpress: '6.1'
multisite: false
- php: '8.0'
wordpress: '6.1'
multisite: true
- php: '8.2'
wordpress: 'trunk'
multisite: false
experimental: true
- php: '8.2'
wordpress: 'trunk'
multisite: true
experimental: true
env:
WP_ENV_PHP_VERSION: ${{ matrix.php }}
Expand All @@ -86,8 +100,10 @@ jobs:
- name: Install WordPress
run: npm run wp-env start

- name: Running php unit tests
- name: Running single site unit tests
if: ${{ ! matrix.multisite }}
run: npm run test-php

- name: Running multisite unit tests
if: ${{ matrix.multisite }}
run: npm run test-php-multisite

0 comments on commit 3a2181b

Please sign in to comment.