Skip to content

Commit

Permalink
Merge pull request #119 from alleyinteractive/feature/wp-type-upgrade
Browse files Browse the repository at this point in the history
Add support for alleyinteractive/wp-type-extensions 3.0
  • Loading branch information
srtfisher authored Dec 6, 2024
2 parents 32e64d7 + 1b706d9 commit abfd73e
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 13 deletions.
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

0 comments on commit abfd73e

Please sign in to comment.