4545 fail-fast : false
4646 matrix :
4747 os : [ ubuntu-latest ]
48- php : [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
48+ php : [ '7.2' ]
4949 db-type : [ 'mysql' ]
50- db-version : [ '5.7', '8.0', '8.1', '8.2', '8.3' ]
50+ db-version : [ '5.7' ]
5151 tests-domain : [ 'example.org' ]
5252 multisite : [ false, true ]
5353 memcached : [ false ]
@@ -95,51 +95,37 @@ jobs:
9595 # Include html5lib tests.
9696 - os : ubuntu-latest
9797 php : ' 7.2'
98- db-type : ' mysql'
9998 db-version : ' 5.7'
100- tests-domain : ' example.org'
10199 multisite : false
102100 html5lib-tests : true
103101 - os : ubuntu-latest
104102 php : ' 7.3'
105- db-type : ' mysql'
106103 db-version : ' 5.7'
107- tests-domain : ' example.org'
108104 multisite : false
109105 html5lib-tests : true
110106 - os : ubuntu-latest
111107 php : ' 7.4'
112- db-type : ' mysql'
113108 db-version : ' 5.7'
114- tests-domain : ' example.org'
115109 multisite : false
116110 html5lib-tests : true
117111 - os : ubuntu-latest
118112 php : ' 8.0'
119- db-type : ' mysql'
120113 db-version : ' 5.7'
121- tests-domain : ' example.org'
122114 multisite : false
123115 html5lib-tests : true
124116 - os : ubuntu-latest
125117 php : ' 8.1'
126- db-type : ' mysql'
127118 db-version : ' 5.7'
128- tests-domain : ' example.org'
129119 multisite : false
130120 html5lib-tests : true
131121 - os : ubuntu-latest
132122 php : ' 8.2'
133- db-type : ' mysql'
134123 db-version : ' 5.7'
135- tests-domain : ' example.org'
136124 multisite : false
137125 html5lib-tests : true
138126 - os : ubuntu-latest
139127 php : ' 8.3'
140- db-type : ' mysql'
141128 db-version : ' 5.7'
142- tests-domain : ' example.org'
143129 multisite : false
144130 html5lib-tests : true
145131 with :
@@ -153,95 +139,95 @@ jobs:
153139 tests-domain : ${{ matrix.tests-domain }}
154140 report : ${{ matrix.report || false }}
155141
156- #
157- # Creates a PHPUnit test job for each PHP/MariaDB combination.
158- #
159- test-with-mariadb :
160- name : PHP ${{ matrix.php }}
161- uses : WordPress/wordpress-develop/.github/workflows/reusable-phpunit-tests.yml@trunk
162- permissions :
163- contents : read
164- secrets : inherit
165- if : ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
166- strategy :
167- fail-fast : false
168- matrix :
169- os : [ ubuntu-latest ]
170- php : [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
171- db-type : [ 'mariadb' ]
172- db-version : [ '10.4', '10.6', '10.11', '11.2' ]
173- multisite : [ false, true ]
174- memcached : [ false ]
142+ # #
143+ # # Creates a PHPUnit test job for each PHP/MariaDB combination.
144+ # #
145+ # test-with-mariadb:
146+ # name: PHP ${{ matrix.php }}
147+ # uses: WordPress/wordpress-develop/.github/workflows/reusable-phpunit-tests.yml@trunk
148+ # permissions:
149+ # contents: read
150+ # secrets: inherit
151+ # if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
152+ # strategy:
153+ # fail-fast: false
154+ # matrix:
155+ # os: [ ubuntu-latest ]
156+ # php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
157+ # db-type: [ 'mariadb' ]
158+ # db-version: [ '10.4', '10.6', '10.11', '11.2' ]
159+ # multisite: [ false, true ]
160+ # memcached: [ false ]
175161
176- include :
177- # Include jobs for PHP 7.4 with memcached.
178- - os : ubuntu-latest
179- php : ' 7.4'
180- db-type : ' mariadb'
181- db-version : ' 11.2'
182- multisite : false
183- memcached : true
184- - os : ubuntu-latest
185- php : ' 7.4'
186- db-type : ' mariadb'
187- db-version : ' 11.2'
188- multisite : true
189- memcached : true
190- with :
191- os : ${{ matrix.os }}
192- php : ${{ matrix.php }}
193- db-type : ${{ matrix.db-type }}
194- db-version : ${{ matrix.db-version }}
195- multisite : ${{ matrix.multisite }}
196- memcached : ${{ matrix.memcached }}
197- phpunit-config : ${{ matrix.multisite && 'tests/phpunit/multisite.xml' || 'phpunit.xml.dist' }}
198- report : ${{ matrix.report || false }}
162+ # include:
163+ # # Include jobs for PHP 7.4 with memcached.
164+ # - os: ubuntu-latest
165+ # php: '7.4'
166+ # db-type: 'mariadb'
167+ # db-version: '11.2'
168+ # multisite: false
169+ # memcached: true
170+ # - os: ubuntu-latest
171+ # php: '7.4'
172+ # db-type: 'mariadb'
173+ # db-version: '11.2'
174+ # multisite: true
175+ # memcached: true
176+ # with:
177+ # os: ${{ matrix.os }}
178+ # php: ${{ matrix.php }}
179+ # db-type: ${{ matrix.db-type }}
180+ # db-version: ${{ matrix.db-version }}
181+ # multisite: ${{ matrix.multisite }}
182+ # memcached: ${{ matrix.memcached }}
183+ # phpunit-config: ${{ matrix.multisite && 'tests/phpunit/multisite.xml' || 'phpunit.xml.dist' }}
184+ # report: ${{ matrix.report || false }}
199185
200- slack-notifications :
201- name : Slack Notifications
202- uses : WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
203- permissions :
204- actions : read
205- contents : read
206- needs : [ test-with-mysql, test-with-mariadb ]
207- if : ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
208- with :
209- calling_status : ${{ contains( needs.*.result, 'cancelled' ) && 'cancelled' || contains( needs.*.result, 'failure' ) && 'failure' || 'success' }}
210- secrets :
211- SLACK_GHA_SUCCESS_WEBHOOK : ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
212- SLACK_GHA_CANCELLED_WEBHOOK : ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
213- SLACK_GHA_FIXED_WEBHOOK : ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
214- SLACK_GHA_FAILURE_WEBHOOK : ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
186+ # slack-notifications:
187+ # name: Slack Notifications
188+ # uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
189+ # permissions:
190+ # actions: read
191+ # contents: read
192+ # needs: [ test-with-mysql, test-with-mariadb ]
193+ # if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }}
194+ # with:
195+ # calling_status: ${{ contains( needs.*.result, 'cancelled' ) && 'cancelled' || contains( needs.*.result, 'failure' ) && 'failure' || 'success' }}
196+ # secrets:
197+ # SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }}
198+ # SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }}
199+ # SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }}
200+ # SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
215201
216- failed-workflow :
217- name : Failed workflow tasks
218- runs-on : ubuntu-latest
219- permissions :
220- actions : write
221- needs : [ slack-notifications ]
222- if : |
223- always() &&
224- github.repository == 'WordPress/wordpress-develop' &&
225- github.event_name != 'pull_request' &&
226- github.run_attempt < 2 &&
227- (
228- contains( needs.*.result, 'cancelled' ) ||
229- contains( needs.*.result, 'failure' )
230- )
202+ # failed-workflow:
203+ # name: Failed workflow tasks
204+ # runs-on: ubuntu-latest
205+ # permissions:
206+ # actions: write
207+ # needs: [ slack-notifications ]
208+ # if: |
209+ # always() &&
210+ # github.repository == 'WordPress/wordpress-develop' &&
211+ # github.event_name != 'pull_request' &&
212+ # github.run_attempt < 2 &&
213+ # (
214+ # contains( needs.*.result, 'cancelled' ) ||
215+ # contains( needs.*.result, 'failure' )
216+ # )
231217
232- steps :
233- - name : Dispatch workflow run
234- uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
235- with :
236- retries : 2
237- retry-exempt-status-codes : 418
238- script : |
239- github.rest.actions.createWorkflowDispatch({
240- owner: context.repo.owner,
241- repo: context.repo.repo,
242- workflow_id: 'failed-workflow.yml',
243- ref: 'trunk',
244- inputs: {
245- run_id: '${{ github.run_id }}'
246- }
247- });
218+ # steps:
219+ # - name: Dispatch workflow run
220+ # uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
221+ # with:
222+ # retries: 2
223+ # retry-exempt-status-codes: 418
224+ # script: |
225+ # github.rest.actions.createWorkflowDispatch({
226+ # owner: context.repo.owner,
227+ # repo: context.repo.repo,
228+ # workflow_id: 'failed-workflow.yml',
229+ # ref: 'trunk',
230+ # inputs: {
231+ # run_id: '${{ github.run_id }}'
232+ # }
233+ # });
0 commit comments