-
Notifications
You must be signed in to change notification settings - Fork 145
54 lines (48 loc) · 1.62 KB
/
test-wp-next.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Test / E2E Runner & Jest & PHP Unit runner for WordPress Next version.
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
jobs:
# Check if WP Next is released
check_if_released:
name: Check if WP Next is released
uses: ./.github/workflows/date-checker.yml
with:
# WP Next scheduled release date. Should be based on `https://make.wordpress.org/core/6-4/` or later.
scheduled_release_date: "2024-04-02"
# Create WP NEXT Version Constant
set_constant:
name: Set WP Next Version Constant
needs: check_if_released
if: needs.check_if_released.outputs.should_run_workflow == 'true'
runs-on: ubuntu-latest
outputs:
# Should be current latest WP Next release on `wordpress.org`. eg: `https://wordpress.org/wordpress-6.5-beta2.zip`
wp_next: "https://wordpress.org/wordpress-6.5-RC4.zip"
steps:
- run: echo "Setting WP Next Constant"
# E2E Testing
chrome_e2e_wp_next:
name: Chrome E2E WP Next Version
needs: set_constant
uses: ./.github/workflows/test-e2e-cypress.yml
with:
wpVersion: ${{ needs.set_constant.outputs.wp_next }}
installPath: "tests-wordpress-6.5-RC4"
theme: "https://downloads.wordpress.org/theme/go.zip"
concurrency:
group: chrome-wp-next
cancel-in-progress: true
# PHP Unit testing
php_unit_wp_next:
needs: set_constant
name: PHP ${{ matrix.php }} WP Next Version
strategy:
matrix:
php: ['7.4','8.3']
uses: ./.github/workflows/test-php-unit.yml
with:
phpVersion: ${{ matrix.php }}
wpVersion: ${{ needs.set_constant.outputs.wp_next }}