Skip to content

Commit 342675c

Browse files
authored
e2e tests: run against latest in PRs, but also trunk and 6.2 in trunk
1 parent 49fe41f commit 342675c

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/e2e.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,19 @@ jobs:
2828
matrix:
2929
event: ['${{ github.event_name }}']
3030
node: ['22', '24']
31-
wp: ['latest', 'trunk']
31+
wp: ['6.2', 'latest', 'trunk']
3232
exclude:
33-
# On PRs: only test Node 22 + WP trunk
34-
# TODO: Revert to WP latest on PRs once WP 6.9 is released with the Abilities API
33+
# On PRs: only test Node 22 + WP trunk for fast feedback
34+
# On trunk: full matrix with minimum and latest WP versions
3535
- event: 'pull_request'
3636
node: '24'
3737
- event: 'pull_request'
38-
wp: 'latest'
38+
wp: '6.2'
39+
- event: 'pull_request'
40+
wp: 'trunk'
3941

4042
env:
41-
WP_ENV_CORE: ${{ matrix.wp == 'trunk' && 'WordPress/WordPress' || null }}
43+
WP_ENV_CORE: ${{ matrix.wp == 'trunk' && 'WordPress/WordPress' || (matrix.wp != 'latest' && format('WordPress/WordPress#{0}', matrix.wp) || null) }}
4244

4345
steps:
4446
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)