99 runs-on : ubuntu-latest
1010
1111 steps :
12- - uses : actions/checkout@v2
12+ - uses : actions/checkout@v3
1313
1414 - name : Use Node.js 16
15- uses : actions/setup-node@v1
15+ uses : actions/setup-node@v3
1616 with :
1717 node-version : 16
1818
@@ -39,10 +39,10 @@ jobs:
3939 wp : [ '5.7', '5.8', '5.9' ]
4040
4141 steps :
42- - uses : actions/checkout@v2
42+ - uses : actions/checkout@v3
4343
4444 - name : Use Node.js 16
45- uses : actions/setup-node@v1
45+ uses : actions/setup-node@v3
4646 with :
4747 node-version : 16
4848
@@ -66,18 +66,51 @@ jobs:
6666 - name : Running PHP unit tests
6767 run : npm run test:unit:php:ci
6868
69+ tests-wp-60 :
70+ name : Tests WordPress 6.0
71+
72+ runs-on : ubuntu-latest
73+
74+ steps :
75+ - uses : actions/checkout@v3
76+
77+ - name : Use Node.js 16
78+ uses : actions/setup-node@v3
79+ with :
80+ node-version : 16
81+
82+ - name : Install dependencies
83+ run : |
84+ npm ci
85+ composer install
86+
87+ - name : " Configure environment with WP 6.0"
88+ run : |
89+ echo -e '{\n\t"core": "https://wordpress.org/wordpress-6.0-RC1.zip"\n}' > ./.wp-env.override.json
90+
91+ - name : Install WordPress
92+ run : |
93+ chmod -R 767 ./ # TODO: Possibly integrate in wp-env
94+ npm run wp-env start
95+
96+ - name : Running JavaScript E2E tests
97+ run : npm run test:e2e
98+
99+ - name : Running PHP unit tests
100+ run : npm run test:unit:php:ci
101+
69102 deploy-dry-run :
70103 name : ' [DRY RUN] Deploy'
71104
72105 # only run on master but not tags
73106 if : ${{ github.ref == 'refs/heads/master' && !startsWith(github.ref, 'refs/tags/') }}
74107
75- needs : [ lint, tests ]
108+ needs : [ lint, tests, 'tests-wp-60' ]
76109
77110 runs-on : ubuntu-latest
78111
79112 steps :
80- - uses : actions/checkout@v2
113+ - uses : actions/checkout@v3
81114
82115 - shell : bash
83116 env :
@@ -91,12 +124,12 @@ jobs:
91124 # only run on tags
92125 if : startsWith(github.ref, 'refs/tags/')
93126
94- needs : [ lint, tests ]
127+ needs : [ lint, tests, 'tests-wp-60' ]
95128
96129 runs-on : ubuntu-latest
97130
98131 steps :
99- - uses : actions/checkout@v2
132+ - uses : actions/checkout@v3
100133
101134 - shell : bash
102135 env :
0 commit comments