Skip to content

Commit 8359b35

Browse files
authored
Merge pull request #197 from Automattic/release/0.8.0
2 parents 46070aa + fcef2b0 commit 8359b35

39 files changed

+4341
-1138
lines changed

.distignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Directories
2+
/.git/
3+
/.github/
4+
/bin/
5+
/node_modules/
6+
/tests/
7+
/vendor/
8+
9+
# Files
10+
.distignore
11+
.editorconfig
12+
.gitattributes
13+
.gitignore
14+
.npmrc
15+
.phpcs.xml.dist
16+
.wp-env.json
17+
.wp-env.override.json
18+
CHANGELOG.md
19+
composer.json
20+
composer.lock
21+
package.json
22+
package-lock.json
23+
phpunit.xml.dist

.github/CODEOWNERS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# The following teams will get auto-tagged for a review.
2+
# See https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
3+
* @Automattic/vip-plugins

.github/dependabot.yml

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,42 @@
1-
# To get started with Dependabot version updates, you'll need to specify which
2-
# package ecosystems to update and where the package manifests are located.
3-
# Please see the documentation for all configuration options:
4-
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
1+
# Configuration for Dependabot version updates
2+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
53

64
version: 2
75
updates:
8-
9-
# Maintain dependencies for GitHub Actions
106
- package-ecosystem: "github-actions"
117
directory: "/"
128
schedule:
13-
interval: "daily"
9+
interval: "weekly"
10+
day: "monday"
11+
groups:
12+
actions:
13+
patterns: ["*"]
14+
labels:
15+
- "dependencies"
16+
commit-message:
17+
prefix: "Actions"
18+
include: "scope"
19+
open-pull-requests-limit: 5
1420

15-
# Maintain dependencies for Composer
1621
- package-ecosystem: "composer"
1722
directory: "/"
1823
schedule:
19-
interval: "daily"
24+
interval: "weekly"
25+
day: "tuesday"
26+
groups:
27+
dev-dependencies:
28+
patterns:
29+
- "automattic/*"
30+
- "dealerdirect/*"
31+
- "php-parallel-lint/*"
32+
- "phpcompatibility/*"
33+
- "phpunit/*"
34+
- "squizlabs/*"
35+
- "yoast/*"
36+
labels:
37+
- "dependencies"
38+
commit-message:
39+
prefix: "Composer"
40+
include: "scope"
41+
open-pull-requests-limit: 5
42+
versioning-strategy: increase-if-necessary

.github/workflows/cs-lint.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
# Allow manually triggering the workflow.
1212
workflow_dispatch:
1313

14+
# Disable all permissions by default. Enable specific permissions per job.
15+
permissions: {}
16+
1417
jobs:
1518
checkcs:
1619
name: Lint checks for PHP ${{ matrix.php }}
@@ -32,7 +35,7 @@ jobs:
3235

3336
steps:
3437
- name: Setup PHP ${{ matrix.php }}
35-
uses: shivammathur/setup-php@v2
38+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
3639
with:
3740
php-version: ${{ matrix.php }}
3841
coverage: none
@@ -41,20 +44,22 @@ jobs:
4144
# Show PHP lint violations inline in the file diff.
4245
# @link https://github.com/marketplace/actions/xmllint-problem-matcher
4346
- name: Register PHP lint violations to appear as file diff comments
44-
uses: korelstar/phplint-problem-matcher@v1
47+
uses: korelstar/phplint-problem-matcher@cb2b753750ec7bf13a7cde0a476df8c5605bdfb1 # v1.2.0
4548

4649
# Show XML violations inline in the file diff.
4750
# @link https://github.com/marketplace/actions/xmllint-problem-matcher
4851
- name: Register XML violations to appear as file diff comments
49-
uses: korelstar/xmllint-problem-matcher@v1
52+
uses: korelstar/xmllint-problem-matcher@1bd292d642ddf3d369d02aaa8b262834d61198c0 # v1.2.0
5053

5154
- name: Checkout code
52-
uses: actions/checkout@v4
55+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
56+
with:
57+
persist-credentials: false
5358

5459
# Install dependencies and handle caching in one go.
5560
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer
5661
- name: Install Composer dependencies
57-
uses: ramsey/composer-install@v2
62+
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # 3.1.1
5863

5964
# Lint PHP.
6065
- name: Lint PHP against parse errors
@@ -64,7 +69,7 @@ jobs:
6469
# @link https://github.com/marketplace/actions/xml-lint
6570
- name: Lint phpunit.xml.dist
6671
if: ${{ matrix.php >= 8.0 }}
67-
uses: ChristophWurst/xmllint-action@v1
72+
uses: ChristophWurst/xmllint-action@7c54ff113fc0f6d4588a15cb4dfe31b6ecca5212 # v1.2.1
6873
with:
6974
xml-file: ./phpunit.xml.dist
7075
xml-schema-file: ./vendor/phpunit/phpunit/phpunit.xsd

.github/workflows/deploy.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,26 @@ on:
66
# Allow manually triggering the workflow.
77
workflow_dispatch:
88

9+
# Disable all permissions by default. Enable specific permissions per job.
10+
permissions: {}
11+
912
jobs:
1013
tag:
1114
name: New tag
1215
runs-on: ubuntu-latest
1316
steps:
1417
- name: Checkout repository
15-
uses: actions/checkout@v4
18+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
19+
with:
20+
persist-credentials: false
21+
22+
- name: Install SVN (Subversion)
23+
run: |
24+
sudo apt-get update
25+
sudo apt-get install subversion
1626
1727
- name: WordPress Plugin Deploy
18-
uses: 10up/action-wordpress-plugin-deploy@stable
28+
uses: 10up/action-wordpress-plugin-deploy@54bd289b8525fd23a5c365ec369185f2966529c2 # 2.3.0
1929
env:
2030
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
2131
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}

.github/workflows/integration.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Run PHPUnit
2+
3+
on:
4+
# Run on all pushes and on all pull requests.
5+
# Prevent the "push" build from running when there are only irrelevant changes.
6+
push:
7+
paths-ignore:
8+
- "**.md"
9+
pull_request:
10+
11+
# Allow manually triggering the workflow.
12+
workflow_dispatch:
13+
14+
# Disable all permissions by default. Enable specific permissions per job.
15+
permissions: {}
16+
17+
# Cancels all previous workflow runs for the same branch that have not yet completed.
18+
concurrency:
19+
# The concurrency group contains the workflow name and the branch name.
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
23+
jobs:
24+
test:
25+
name: WP ${{ matrix.wordpress }} on PHP ${{ matrix.php }}
26+
runs-on: ubuntu-latest
27+
28+
env:
29+
WP_VERSION: ${{ matrix.wordpress }}
30+
31+
strategy:
32+
matrix:
33+
include:
34+
# Check lowest supported WP version, with the lowest supported PHP.
35+
- wordpress: '6.4'
36+
php: '7.4'
37+
# Check latest WP with the latest PHP.
38+
- wordpress: 'master'
39+
php: 'latest'
40+
fail-fast: false
41+
42+
steps:
43+
- name: Checkout code
44+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
45+
with:
46+
persist-credentials: false
47+
48+
- name: Install wordpress environment
49+
run: npm install -g @wordpress/env
50+
51+
- name: Setup PHP ${{ matrix.php }}
52+
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
53+
with:
54+
php-version: ${{ matrix.php }}
55+
coverage: none
56+
tools: composer
57+
58+
- name: Setup problem matchers for PHP
59+
run: echo "::add-matcher::${TOOL_CACHE}/php.json"
60+
env:
61+
TOOL_CACHE: ${{ runner.tool_cache }}
62+
63+
- name: Setup Problem Matchers for PHPUnit
64+
run: echo "::add-matcher::${TOOL_CACHE}/phpunit.json"
65+
env:
66+
TOOL_CACHE: ${{ runner.tool_cache }}
67+
68+
- name: Install Composer dependencies
69+
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # 3.1.1
70+
71+
- name: Setup wp-env
72+
run: wp-env start
73+
env:
74+
WP_ENV_CORE: WordPress/WordPress#${{ matrix.wordpress }}
75+
76+
- name: Run integration tests
77+
run: composer test:integration --no-interaction

.github/workflows/integrations.yml

Lines changed: 0 additions & 100 deletions
This file was deleted.

0 commit comments

Comments
 (0)