diff --git a/.github/workflows/all-pr-tests.yml b/.github/workflows/all-pr-tests.yml index 9b022a08..0e0eb484 100644 --- a/.github/workflows/all-pr-tests.yml +++ b/.github/workflows/all-pr-tests.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index b4894d91..68597453 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/composer.json b/composer.json index 30663733..36040505 100644 --- a/composer.json +++ b/composer.json @@ -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", @@ -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" diff --git a/package.json b/package.json index ac4a92ed..f4d18153 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/tests/Alley/WP/Alleyvate/Features/DisableAppleNewsNonProdPushTest.php b/tests/Alley/WP/Alleyvate/Features/DisableAppleNewsNonProdPushTest.php index 90508137..c9b53b3c 100644 --- a/tests/Alley/WP/Alleyvate/Features/DisableAppleNewsNonProdPushTest.php +++ b/tests/Alley/WP/Alleyvate/Features/DisableAppleNewsNonProdPushTest.php @@ -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(); } diff --git a/wp-alleyvate.php b/wp-alleyvate.php index 12e14cf7..845b97bd 100644 --- a/wp-alleyvate.php +++ b/wp-alleyvate.php @@ -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