Skip to content

Commit 37412b3

Browse files
Add summary job to PHP Unit tests.
This is to be used as the required action in the repo settings. Co-authored-by: desrosj <[email protected]>
1 parent a2872bc commit 37412b3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/phpunit.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,13 @@ jobs:
6666
env:
6767
WP_TESTS_DIR: ${{ runner.temp }}/wordpress-tests-lib
6868
WP_CORE_DIR: ${{ runner.temp }}/wordpress
69+
70+
required-status-checks:
71+
name: PHPUnit Required Status Checks
72+
runs-on: 'ubuntu-24.04'
73+
needs: [ 'phpunit' ]
74+
if: ${{ always() }}
75+
steps:
76+
- name: Detect any failing status checks
77+
run: |
78+
[[ "${{ join(needs.*.result, ' ') }}" =~ ^(success ?)+$ ]] || exit 1

0 commit comments

Comments
 (0)