Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for alleyinteractive/wp-type-extensions 3.0 #119

Merged
merged 10 commits into from
Dec 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Upgrade alleyinteractive/wp-type-extensions to support 3.0, add matri…
…x for testing split versions
srtfisher committed Dec 6, 2024

Verified

This commit was signed with the committer’s verified signature.
srtfisher Sean Fisher
commit 01e0473e316a0c11074c45eef374f8a0ec1a3650
26 changes: 24 additions & 2 deletions .github/workflows/all-pr-tests.yml
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
dependencies: ["lowest", "highest"]
php: [8.1, 8.2, 8.3]
wordpress: ["latest"]
multisite: [false, true]
@@ -37,9 +38,30 @@ jobs:
# See https://github.com/alleyinteractive/action-test-php for more options
uses: alleyinteractive/action-test-php@develop
with:
install-command: ${{ matrix.dependencies == 'lowest' && 'composer update --prefer-lowest --no-interaction --no-progress' || 'composer install --prefer-dist --no-interaction --no-progress' }}
php-version: '${{ matrix.php }}'
skip-audit: 'true'
wordpress-version: '${{ matrix.wordpress }}'
wordpress-multisite: '${{ matrix.multisite }}'
skip-core-test-suite: 'true'
skip-wordpress-install: 'true'
wordpress-multisite: '${{ matrix.multisite }}'
wordpress-version: '${{ matrix.wordpress }}'
# This required job ensures that all PR checks have passed before merging.
all-pr-checks-passed:
name: All PR checks passed
needs:
- pr-tests
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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
"require": {
"php": "^8.1",
"alleyinteractive/composer-wordpress-autoloader": "^1.0",
"alleyinteractive/wp-type-extensions": "^2.0",
"alleyinteractive/wp-type-extensions": "^2.0|^3.0",
"symfony/http-foundation": "^v6.4.12"
},
"require-dev": {