@@ -161,17 +161,19 @@ jobs:
161161 run : npm run env:install
162162
163163 - name : Run PHPUnit tests
164+ if : {{ ! inputs.html5lib-tests }}
164165 run : node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c ${{ env.PHPUNIT_CONFIG }}
165166
166167 - name : Run AJAX tests
168+ if : {{ ! inputs.html5lib-tests }}
167169 run : node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c ${{ env.PHPUNIT_CONFIG }} --group ajax
168170
169171 - name : Run ms-files tests as a multisite install
170- if : ${{ inputs.multisite }}
172+ if : ${{ inputs.multisite && ! inputs.html5lib-tests }}
171173 run : node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c ${{ env.PHPUNIT_CONFIG }} --group ms-files
172174
173175 - name : Run external HTTP tests
174- if : ${{ ! inputs.multisite }}
176+ if : ${{ ! inputs.multisite && ! inputs.html5lib-tests }}
175177 run : node ./tools/local-env/scripts/docker.js run php ./vendor/bin/phpunit --verbose -c ${{ env.PHPUNIT_CONFIG }} --group external-http
176178
177179 - name : Check if the HTML API was modified
@@ -198,15 +200,15 @@ jobs:
198200 run : git diff --exit-code
199201
200202 - name : Checkout the WordPress Test Reporter
201- if : ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && inputs.report }}
203+ if : ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && inputs.report && ! inputs.html5lib-tests }}
202204 uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
203205 with :
204206 repository : ' WordPress/phpunit-test-runner'
205207 path : ' test-runner'
206208 show-progress : ${{ runner.debug == '1' && 'true' || 'false' }}
207209
208210 - name : Submit test results to the WordPress.org host test results
209- if : ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && inputs.report }}
211+ if : ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && inputs.report && ! inputs.html5lib-tests }}
210212 env :
211213 WPT_REPORT_API_KEY : " ${{ secrets.WPT_REPORT_API_KEY }}"
212214 run : docker compose run --rm -e WPT_REPORT_API_KEY -e WPT_PREPARE_DIR=/var/www -e WPT_TEST_DIR=/var/www php php test-runner/report.php
0 commit comments