Skip to content

Commit aa3f417

Browse files
committed
Test exclusions using an array.
1 parent 3274511 commit aa3f417

2 files changed

Lines changed: 34 additions & 3 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: test-exclude-array.yml
2+
on:
3+
4+
jobs:
5+
# Tests the full list of PHP/MySQL combinations for the two most recent versions of WordPress.
6+
#
7+
# Only runs when testing the currently supported branch or latest/nightly.
8+
upgrade-tests-recent-releases:
9+
name: ${{ matrix.wp }} to latest
10+
uses: ./.github/workflows/reusable-upgrade-testing.yml
11+
permissions:
12+
contents: read
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ 'ubuntu-24.04' ]
17+
php: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ]
18+
db-type: [ 'mysql' ]
19+
db-version: [ '5.7', '8.0', '8.4', '9.6' ]
20+
wp: [ '4.7', '5.0', '6.7', '6.8' ]
21+
multisite: [ false, true ]
22+
23+
exclude:
24+
- php: [ '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ]
25+
wp: '4.7'
26+
27+
with:
28+
os: ${{ matrix.os }}
29+
php: ${{ matrix.php }}
30+
db-type: ${{ matrix.db-type }}
31+
db-version: ${{ matrix.db-version }}
32+
wp: ${{ matrix.wp }}
33+
new-version: ${{ inputs.new-version && inputs.new-version || 'latest' }}
34+
multisite: ${{ matrix.multisite }}

.github/workflows/upgrade-testing.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,6 @@ jobs:
358358
db-version: '9.6'
359359
- php: '7.3'
360360
db-version: '9.6'
361-
- php: [ '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ]
362-
wp: '4.7'
363-
- php: [ '7.4', '8.2', '8.3', '8.4', '8.5' ]
364361
with:
365362
os: ${{ matrix.os }}
366363
php: ${{ matrix.php }}

0 commit comments

Comments
 (0)