Skip to content

Commit 08c819b

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 08c819b

File tree

7 files changed

+4
-733
lines changed

7 files changed

+4
-733
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: 4 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -71,34 +71,8 @@ jobs:
7171
os: [ ubuntu-latest ]
7272
memcached: [ false ]
7373
split_slow: [ false ]
74-
multisite: [ false, true ]
75-
include:
76-
# Additional "slow" jobs for PHP 5.6.
77-
- php: '5.6.20'
78-
os: ubuntu-latest
79-
memcached: false
80-
multisite: false
81-
split_slow: true
82-
- php: '5.6.20'
83-
os: ubuntu-latest
84-
memcached: false
85-
multisite: true
86-
split_slow: true
87-
# Include jobs for PHP 7.4 with memcached.
88-
- php: '7.4'
89-
os: ubuntu-latest
90-
memcached: true
91-
multisite: false
92-
- php: '7.4'
93-
os: ubuntu-latest
94-
memcached: true
95-
multisite: true
96-
# Report the results of the PHP 7.4 without memcached job.
97-
- php: '7.4'
98-
os: ubuntu-latest
99-
memcached: false
100-
multisite: false
101-
report: true
74+
multisite: [ false ]
75+
10276
env:
10377
LOCAL_PHP: ${{ matrix.php }}-fpm
10478
LOCAL_PHP_MEMCACHED: ${{ matrix.memcached }}
@@ -197,48 +171,5 @@ jobs:
197171
- name: Install WordPress
198172
run: npm run env:install
199173

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
174+
- name: Run only OUR test
175+
run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c ${{ env.PHPUNIT_CONFIG }} --filter test_widget_display_callback_handles_arrayobject

0 commit comments

Comments
 (0)