Skip to content

Commit 4fd4a7e

Browse files
committed
DELETE / Testing: slim down the action workflows to just run the relevant test
Quick hack to make the preserve GH resources and get results quicker while testing this issue.
1 parent c1c9c08 commit 4fd4a7e

File tree

7 files changed

+2
-705
lines changed

7 files changed

+2
-705
lines changed

.github/workflows/end-to-end-tests.yml

Lines changed: 0 additions & 124 deletions
This file was deleted.

.github/workflows/javascript-tests.yml

Lines changed: 0 additions & 93 deletions
This file was deleted.

.github/workflows/phpunit-tests.yml

Lines changed: 2 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -197,48 +197,5 @@ jobs:
197197
- name: Install WordPress
198198
run: npm run env:install
199199

200-
- name: Run slow PHPUnit tests
201-
if: ${{ matrix.split_slow }}
202-
run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c ${{ env.PHPUNIT_CONFIG }} --group ${{ env.SLOW_TESTS }}
203-
204-
- name: Run PHPUnit tests for single site excluding slow tests
205-
if: ${{ matrix.php < '7.0' && ! matrix.split_slow && ! matrix.multisite }}
206-
run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c ${{ env.PHPUNIT_CONFIG }} --exclude-group ${{ env.SLOW_TESTS }},ajax,ms-files,ms-required
207-
208-
- name: Run PHPUnit tests for Multisite excluding slow tests
209-
if: ${{ matrix.php < '7.0' && ! matrix.split_slow && matrix.multisite }}
210-
run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c ${{ env.PHPUNIT_CONFIG }} --exclude-group ${{ env.SLOW_TESTS }},ajax,ms-files,ms-excluded,oembed-headers
211-
212-
- name: Run PHPUnit tests
213-
if: ${{ matrix.php >= '7.0' }}
214-
run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c ${{ env.PHPUNIT_CONFIG }}
215-
216-
- name: Run AJAX tests
217-
if: ${{ ! matrix.split_slow }}
218-
run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c ${{ env.PHPUNIT_CONFIG }} --group ajax
219-
220-
- name: Run ms-files tests as a multisite install
221-
if: ${{ matrix.multisite && ! matrix.split_slow }}
222-
run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c tests/phpunit/multisite.xml --group ms-files
223-
224-
- name: Run external HTTP tests
225-
if: ${{ ! matrix.multisite && ! matrix.split_slow }}
226-
run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c phpunit.xml.dist --group external-http
227-
228-
# __fakegroup__ is excluded to force PHPUnit to ignore the <exclude> settings in phpunit.xml.dist.
229-
- name: Run (xDebug) tests
230-
if: ${{ ! matrix.split_slow }}
231-
run: LOCAL_PHP_XDEBUG=true npm run test:${{ env.PHPUNIT_SCRIPT }} -- -v --group xdebug --exclude-group __fakegroup__
232-
233-
- name: Checkout the WordPress Test Reporter
234-
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/master' && matrix.report }}
235-
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
236-
with:
237-
repository: 'WordPress/phpunit-test-runner'
238-
path: 'test-runner'
239-
240-
- name: Submit test results to the WordPress.org host test results
241-
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/master' && matrix.report }}
242-
env:
243-
WPT_REPORT_API_KEY: "${{ secrets.WPT_REPORT_API_KEY }}"
244-
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
200+
- name: Run only OUR test
201+
run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose --filter test_widget_display_callback_handles_arrayobject

0 commit comments

Comments
 (0)