Skip to content

Commit 8062749

Browse files
Merge pull request #3 from peterwilsoncc/try/php-unit-summary-action
Add summary job for PHP Unit Test suite.
2 parents ca9f73c + 34fd960 commit 8062749

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/phpunit.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ concurrency:
1313
cancel-in-progress: true
1414

1515
jobs:
16-
run:
16+
phpunit:
1717
runs-on: ubuntu-latest
1818
env:
1919
DB_DATABASE: wordpress_test
2020
DB_USER: root
2121
DB_PASSWORD: root
2222
strategy:
23+
fail-fast: false
2324
matrix:
2425
wp-versions: [ '6.3', '6.4', '6.5', '6.6', '6.7', '6.8', 'latest', 'trunk' ]
2526
php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
@@ -66,3 +67,13 @@ jobs:
6667
env:
6768
WP_TESTS_DIR: ${{ runner.temp }}/wordpress-tests-lib
6869
WP_CORE_DIR: ${{ runner.temp }}/wordpress
70+
71+
required-status-checks:
72+
name: PHPUnit Required Status Checks
73+
runs-on: 'ubuntu-24.04'
74+
needs: [ 'phpunit' ]
75+
if: ${{ always() }}
76+
steps:
77+
- name: Detect any failing status checks
78+
run: |
79+
[[ "${{ join(needs.*.result, ' ') }}" =~ ^(success ?)+$ ]] || exit 1

0 commit comments

Comments
 (0)