Skip to content

Commit 50756c7

Browse files
committed
add official 6.0 release to pipeline
1 parent 6565c49 commit 50756c7

1 file changed

Lines changed: 3 additions & 36 deletions

File tree

.github/workflows/lint-test-deploy.yml

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
strategy:
3838
matrix:
39-
wp: [ '5.7', '5.8', '5.9' ]
39+
wp: [ '5.7', '5.8', '5.9', '6.0' ]
4040

4141
steps:
4242
- uses: actions/checkout@v3
@@ -66,46 +66,13 @@ 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-RC2.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-
10269
deploy-dry-run:
10370
name: '[DRY RUN] Deploy'
10471

10572
# only run on master but not tags
10673
if: ${{ github.ref == 'refs/heads/master' && !startsWith(github.ref, 'refs/tags/') }}
10774

108-
needs: [ lint, tests, 'tests-wp-60' ]
75+
needs: [ lint, tests ]
10976

11077
runs-on: ubuntu-latest
11178

@@ -124,7 +91,7 @@ jobs:
12491
# only run on tags
12592
if: startsWith(github.ref, 'refs/tags/')
12693

127-
needs: [ lint, tests, 'tests-wp-60' ]
94+
needs: [ lint, tests ]
12895

12996
runs-on: ubuntu-latest
13097

0 commit comments

Comments
 (0)