|
36 | 36 |
|
37 | 37 | strategy: |
38 | 38 | matrix: |
39 | | - wp: [ '5.7', '5.8', '5.9' ] |
| 39 | + wp: [ '5.7', '5.8', '5.9', '6.0' ] |
40 | 40 |
|
41 | 41 | steps: |
42 | 42 | - uses: actions/checkout@v3 |
@@ -66,46 +66,13 @@ jobs: |
66 | 66 | - name: Running PHP unit tests |
67 | 67 | run: npm run test:unit:php:ci |
68 | 68 |
|
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 | | - |
102 | 69 | deploy-dry-run: |
103 | 70 | name: '[DRY RUN] Deploy' |
104 | 71 |
|
105 | 72 | # only run on master but not tags |
106 | 73 | if: ${{ github.ref == 'refs/heads/master' && !startsWith(github.ref, 'refs/tags/') }} |
107 | 74 |
|
108 | | - needs: [ lint, tests, 'tests-wp-60' ] |
| 75 | + needs: [ lint, tests ] |
109 | 76 |
|
110 | 77 | runs-on: ubuntu-latest |
111 | 78 |
|
|
124 | 91 | # only run on tags |
125 | 92 | if: startsWith(github.ref, 'refs/tags/') |
126 | 93 |
|
127 | | - needs: [ lint, tests, 'tests-wp-60' ] |
| 94 | + needs: [ lint, tests ] |
128 | 95 |
|
129 | 96 | runs-on: ubuntu-latest |
130 | 97 |
|
|
0 commit comments