Skip to content

Commit 142950c

Browse files
authored
Merge branch 'main' into update-tested-up-to-version-20250216000352
2 parents 5d66611 + c0316cc commit 142950c

15 files changed

+407
-271
lines changed

.github/dependabot.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ updates:
77
timezone: America/Los_Angeles
88
day: tuesday
99
target-branch: "main"
10-
open-pull-requests-limit: 99
10+
open-pull-requests-limit: 99
11+
- package-ecosystem: "github-actions"
12+
directory: "/"
13+
schedule:
14+
interval: daily

.github/workflows/build-tag-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions:
1010

1111
jobs:
1212
check-status:
13+
name: Check status
1314
runs-on: ubuntu-latest
1415
outputs:
1516
maybe-asset-only: ${{ steps.set-outputs.outputs.maybe-asset-only }}
@@ -23,13 +24,14 @@ jobs:
2324
shopt -s nocasematch
2425
maybe_asset_only="true"
2526
for file in ${{ steps.get-changed-files.outputs.all }}; do
26-
if [[ $file =~ ^\.wordpress\.org/ ]] && [[ $file != "readme.txt" ]] && [[ $file != "readme.md" ]]; then
27+
if [[ $file =~ ^\.wordpress\.org/ ]] && [[ $file != "readme.txt" ]] && [[ $file != "readme.md" ]] && [[ ! $file =~ ^\.github/ ]]; then
2728
maybe_asset_only="false"
2829
break
2930
fi
3031
done
3132
echo "::set-output name=maybe-asset-only::$maybe_asset_only"
3233
asset-only:
34+
name: Asset-only update
3335
needs: check-status
3436
if: ${{ needs.check-status.outputs.maybe-asset-only == 'true' }}
3537
runs-on: ubuntu-latest
@@ -53,6 +55,8 @@ jobs:
5355
build_node_assets: "true"
5456
build_composer_assets: "true"
5557
prepare_dev:
58+
needs: check-status
59+
if: ${{ needs.check-status.outputs.maybe-asset-only == 'false' }}
5660
name: Update Dev environment for the next version
5761
runs-on: ubuntu-latest
5862
steps:

.github/workflows/draft-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Draft Release PR
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
- name: Draft Release PR
1818
uses: pantheon-systems/plugin-release-actions/release-pr@v0
1919
with:

.github/workflows/lint-test.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,39 +16,35 @@ jobs:
1616
DB_PASSWORD: root
1717
DB_HOST: localhost
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
- name: Install NPM & Composer dependencies
2121
run: |
2222
composer install
2323
npm install
24-
- name: Setup MySQL
24+
- name: Start MySQL
2525
run: |
2626
sudo /etc/init.d/mysql start
27-
mysql -e 'CREATE DATABASE IF NOT EXISTS wordpress_test;' -uroot -proot
28-
mysql -e 'SHOW DATABASES;' -uroot -proot
29-
- name: Install WP Unit tests
30-
run: |
31-
php -v
3227
mysqladmin -V
33-
bash .bin/install-wp-tests.sh wordpress_test root root localhost latest true
28+
- name: Setup WP-CLI
29+
uses: godaddy-wordpress/setup-wp-cli@1
3430
- name: Run linter
3531
run: composer lint
3632
- name: Run tests
37-
run: composer test
33+
run: bash ./bin/phpunit-test.sh
3834
wporg-code-analysis:
3935
runs-on: ubuntu-latest
4036
name: WP.org Code Analysis
4137
steps:
42-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@v4
4339
- name: WP.org Code Analysis
44-
uses: pantheon-systems/action-wporg-validator@1.0.0
40+
uses: pantheon-systems/action-wporg-validator@v1.1.5
4541
with:
4642
type: plugin
4743
phpcompatibility:
4844
runs-on: ubuntu-latest
4945
name: PHP Compatibility
5046
steps:
51-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
5248
- run: echo "Note these tests may be incomplete for newer PHP version and miss some deprecations"
5349
shell: bash
5450
- name: PHPCompatibility
@@ -61,7 +57,7 @@ jobs:
6157
name: Validate README Spacing
6258
runs-on: ubuntu-latest
6359
steps:
64-
- uses: actions/checkout@v3
65-
- uses: pantheon-systems/validate-readme-spacing@v1
60+
- uses: actions/checkout@v4
61+
- uses: pantheon-systems/validate-readme-spacing@v1.0.5
6662
with:
67-
filepath: 'README.MD'
63+
filepath: 'README.MD'
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Validate Tested Up To Version
2+
on:
3+
schedule:
4+
- cron: '0 0 * * 0'
5+
workflow_dispatch:
6+
7+
permissions:
8+
pull-requests: write
9+
contents: write
10+
11+
jobs:
12+
validate-plugin-version:
13+
runs-on: ubuntu-latest
14+
name: Validate Plugin Version
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
- uses: jazzsequence/action-validate-plugin-version@v1
20+
with:
21+
filenames: 'readme.txt,README.MD'
22+
branch: 'release'

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ node_modules/
1010

1111
/vendor/
1212

13+
# WPUnit Helpers
14+
bin/helpers.sh
15+
bin/install-local-tests.sh
16+
bin/install-wp-tests.sh
17+
bin/phpunit-test.sh
18+
1319
# Built files
1420
assets/css/*.css
1521
assets/css/*.css.map

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @pantheon-systems/cms-platform
1+
* @pantheon-systems/site-experience

README.MD

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: comments, spam
55
Requires at least: 4.5
66
Tested up to: 6.7.2
77
Requires PHP: 5.6
8-
Stable tag: 0.3.9
8+
Stable tag: 0.3.10-dev
99
License: GPLv2 or later
1010
License URI: https://www.gnu.org/licenses/gpl-2.0.html
1111

@@ -26,6 +26,8 @@ See the robots hard at work.
2626

2727
## Changelog
2828

29+
### 0.3.10-dev
30+
2931
### 0.3.9
3032
* Set Counter to 14 [[70](https://github.com/pantheon-systems/plugin-pipeline-example/pull/70)]
3133

catalog-info.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
apiVersion: backstage.io/v1alpha1
3+
kind: Component
4+
metadata:
5+
name: plugin-pipeline-example
6+
description: Auto-generated catalog info for pantheon-systems/plugin-pipeline-example
7+
annotations:
8+
backstage.io/techdocs-ref: dir:docs/
9+
spec:
10+
type: library
11+
lifecycle: mature
12+
owner: site

composer.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"pantheon-systems/pantheon-wp-coding-standards": "^2.0",
1616
"pantheon-systems/pantheon-wordpress-upstream-tests": "dev-master",
1717
"phpunit/phpunit": "^9",
18-
"yoast/phpunit-polyfills": "^1.0"
18+
"yoast/phpunit-polyfills": "^3.1",
19+
"pantheon-systems/wpunit-helpers": "^2.0"
1920
},
2021
"scripts": {
2122
"lint": [
@@ -26,11 +27,14 @@
2627
"phpcs": "vendor/bin/phpcs -s .",
2728
"phpcbf": "vendor/bin/phpcbf",
2829
"phpunit": "vendor/bin/phpunit",
29-
"test": "@phpunit"
30+
"test": "@phpunit",
31+
"test:install": "bin/install-local-tests.sh --skip-db=true",
32+
"test:install:withdb": "bin/install-local-tests.sh"
3033
},
3134
"config": {
3235
"allow-plugins": {
33-
"dealerdirect/phpcodesniffer-composer-installer": true
36+
"dealerdirect/phpcodesniffer-composer-installer": true,
37+
"pantheon-systems/wpunit-helpers": true
3438
}
3539
}
3640
}

0 commit comments

Comments
 (0)