Skip to content

Commit 3d6c357

Browse files
committed
Drop 8.1, add 8.4
1 parent 4a3db2b commit 3d6c357

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/all-pr-tests.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
php: [8.1, 8.2, 8.3]
21+
php: [8.2, 8.3, 8.4]
2222
wordpress: ["latest"]
2323
runs-on: ubuntu-latest
2424
# Cancel any existing runs of this workflow
@@ -42,3 +42,22 @@ jobs:
4242
wordpress-version: '${{ matrix.wordpress }}'
4343
skip-wordpress-install: 'true'
4444
skip-services: 'true' # Skip MySQL unless the library is not using SQLite testing.
45+
all-pr-checks-passed:
46+
name: All PR checks passed
47+
needs:
48+
- pr-tests
49+
runs-on: ubuntu-latest
50+
if: always()
51+
steps:
52+
- name: Check job statuses
53+
run: |
54+
if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]]; then
55+
echo "One or more jobs failed"
56+
exit 1
57+
elif [[ "${{ contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
58+
echo "One or more jobs were cancelled"
59+
exit 1
60+
else
61+
echo "All jobs passed or were skipped"
62+
exit 0
63+
fi

0 commit comments

Comments
 (0)