Skip to content

Commit

Permalink
Merge branch '1.x' into feature/attachment-factory
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher authored Oct 30, 2024
2 parents cb14b9a + 770b9b5 commit 5b223ed
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 28 deletions.
27 changes: 0 additions & 27 deletions .github/workflows/coding-standards.yml

This file was deleted.

28 changes: 27 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ on:
- cron: '0 0 * * 0'

jobs:
php-tests:
lint:
uses: alleyinteractive/.github/.github/workflows/php-composer-command.yml@main
with:
command: "lint"
php: 8.2
phpunit:
strategy:
fail-fast: false
matrix:
Expand All @@ -27,3 +32,24 @@ jobs:
multisite: ${{ matrix.multisite }}
php: ${{ matrix.php }}
wordpress: ${{ matrix.wordpress }}
# This required job ensures that all PR checks have passed before merging.
all-pr-checks-passed:
name: All PR checks passed
needs:
- lint
- phpunit
runs-on: ubuntu-latest
if: always()
steps:
- name: Check job statuses
run: |
if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]]; then
echo "One or more jobs failed"
exit 1
elif [[ "${{ contains(needs.*.result, 'cancelled') }}" == "true" ]]; then
echo "One or more jobs were cancelled"
exit 1
else
echo "All jobs passed or were skipped"
exit 0
fi

0 comments on commit 5b223ed

Please sign in to comment.