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
Show file tree
Hide file tree
Changes from all commits
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
24 changes: 22 additions & 2 deletions .github/workflows/all-pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,27 @@ jobs:
with:
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ This library adheres to [Semantic Versioning](https://semver.org/) and [Keep a C

## Unreleased

## 3.5.1

* Added support for `alleyinteractive/wp-type-extensions` v3.

## 3.5.0

### Added
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
"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": {
"alleyinteractive/alley-coding-standards": "^2.0",
"friendsofphp/php-cs-fixer": "^3.8",
"mantle-framework/testkit": "^1.0",
"szepeviktor/phpstan-wordpress": "^1.3"
"friendsofphp/php-cs-fixer": "^3.65",
"mantle-framework/testkit": "^1.3",
"szepeviktor/phpstan-wordpress": "^1.3.5"
},
"scripts": {
"fixer": "php-cs-fixer -v fix --allow-risky=yes",
Expand All @@ -42,7 +42,7 @@
"phpcs": "phpcs",
"phpstan": "phpstan --memory-limit=768M",
"phpunit": "phpunit",
"scaffold": "npx npx @alleyinteractive/scaffolder@latest wp-alleyvate@feature",
"scaffold": "npx @alleyinteractive/scaffolder@latest wp-alleyvate@feature",
"test": [
"@lint",
"@phpunit"
Expand Down
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
"npm": "10"
},
"scripts": {
"preinstall": "check-node-version --package",
"prerelease": "check-node-version --package",
"release": "npx @alleyinteractive/create-release@latest"
},
"devDependencies": {
"check-node-version": "^4.2.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ final class DisableAppleNewsNonProdPushTest extends Test_Case {
* Setup before test.
*/
protected function setUp(): void {
parent::setUp();

$this->feature = new Disable_Apple_News_Non_Prod_Push();
}

Expand Down
2 changes: 1 addition & 1 deletion wp-alleyvate.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Plugin Name: Alleyvate
* Plugin URI: https://github.com/alleyinteractive/wp-alleyvate
* Description: Defaults for WordPress sites by Alley
* Version: 3.5.0
* Version: 3.5.1
* Author: Alley
* Author URI: https://www.alley.com
* Requires at least: 6.2
Expand Down
Loading