Skip to content

Commit 62d81fb

Browse files
authored
Merge branch 'develop' into update/121
2 parents 3ea36fa + ef9ab4c commit 62d81fb

73 files changed

Lines changed: 11846 additions & 5466 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/blueprints/blueprint.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
3+
"phpExtensionBundles": [
4+
"kitchen-sink"
5+
],
6+
"features": {
7+
"networking": true
8+
},
9+
"landingPage": "/wp-admin/admin.php?page=pull",
10+
"steps": [
11+
{
12+
"step": "installPlugin",
13+
"pluginData": {
14+
"resource": "url",
15+
"url": "https://github-proxy.com/proxy/?repo=10up/distributor&branch=stable"
16+
}
17+
},
18+
{
19+
"step": "enableMultisite"
20+
},
21+
{
22+
"step": "wp-cli",
23+
"command": "wp plugin activate distributor-stable --network"
24+
},
25+
{
26+
"step": "wp-cli",
27+
"command": "wp site create --slug=test"
28+
}
29+
]
30+
}

.github/release-pull-request-template.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
- [x] Branch: Starting from `develop`, create a release branch named `release/X.Y.Z` for your changes.
22
- [ ] Version bump: Bump the version number in `distributor.php`, `package-lock.json`, `package.json`, `readme.txt` and `tests/php/bootstrap.php` if it does not already reflect the version being released. In `distributor.php` update both the plugin "Version:" property and the plugin `DT_VERSION` constant.
3-
- [ ] New files: Ensure any new files, especially in the vendor folder, are correctly included in `webpack.config.release.js`.
43
- [ ] Changelog: Add/update the changelog in `CHANGELOG.md`.
54
- [ ] Props: Update `CREDITS.md` file with any new contributors, confirm maintainers are accurate.
65
- [ ] Readme updates: Make any other readme changes as necessary. `README.md` is geared toward GitHub and `readme.txt` contains WordPress.org-specific content. The two are slightly different.
6+
- [ ] New files: Ensure any new files, especially in the vendor folder, are correctly included in `webpack.config.release.js`.
77
- [ ] Since tag updates: ensure `@since` tags indicate the new version, replacing `x.x.x`, `n.e.x.t` and other placeholders.
8-
- [ ] Merge: Make a non-fast-forward merge from your release branch to `develop` (or merge the Pull Request), then do the same for `develop` into `trunk` (`git checkout trunk && git merge --no-ff develop`). `trunk` contains the stable development version.
8+
- [ ] Merge: Make a non-fast-forward merge from your release branch to `develop` (or merge the Pull Request), then do the same for `develop` into `trunk` (`git checkout develop && git pull origin develop && git checkout trunk && git pull origin trunk && git merge --no-ff develop`). `trunk` contains the stable development version.
9+
- [ ] Push: Push your trunk branch to GitHub (e.g. `git push origin trunk`).
10+
- [ ] [Compare](https://github.com/10up/distributor/compare/trunk...develop) `trunk` to `develop` to ensure no additional changes were missed.
911
- [ ] Build: Wait for the [Build Stable Release Action](https://github.com/10up/distributor/actions?query=workflow%3A%22Build+Stable+Release%22) to finish running.
10-
- [ ] Update this pull request's status from `draft` to `ready to merge`.
1112
- [ ] Review: Do a review of the commit to the `stable` branch to ensure the contents of the diffs are as expected.
1213
- [ ] Test: Check out the `stable` branch and test it locally to ensure everything works as expected. It is recommended that you rename the existing `distributor` directory and check out `stable` fresh because switching branches does not delete files. This can be done with `git clone --single-branch --branch stable git@github.com:10up/distributor.git`
1314
- [ ] Either perform a regression testing utilizing the available [Critical Flows](https://10up.github.io/Open-Source-Best-Practices/testing/#critical-flows) and Test Cases or if [end-to-end tests](https://10up.github.io/Open-Source-Best-Practices/testing/#e2e-testing) cover a significant portion of those Critical Flows then run e2e tests. Only proceed if everything tests successfully.
295 KB
Loading

.github/workflows/build-docs.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,26 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2.4.0
12+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13+
1314
- name: Use desired version of NodeJS
14-
uses: actions/setup-node@v3
15+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
1516
with:
1617
node-version-file: '.nvmrc'
18+
1719
- name: Check versions
1820
run: npm -v; node -v
21+
1922
- name: npm install, and build docs
2023
run: |
2124
npm install
2225
npm -g install gulp-cli
2326
npm run build:docs
2427
env:
2528
CI: true
29+
2630
- name: Deploy to GH Pages
27-
uses: peaceiris/actions-gh-pages@v3
31+
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
2832
with:
2933
github_token: ${{ secrets.GITHUB_TOKEN }}
3034
publish_dir: './docs-built'

.github/workflows/build-stable.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v3.5.3
12+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13+
1314
- name: Use desired version of NodeJS
14-
uses: actions/setup-node@v3
15+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
1516
with:
1617
node-version-file: '.nvmrc'
18+
1719
- name: Set PHP version
18-
uses: shivammathur/setup-php@2.25.4
20+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
1921
with:
2022
php-version: 7.4
2123
tools: composer:v2, wp
@@ -42,6 +44,7 @@ jobs:
4244
composer install --no-dev
4345
npm install
4446
npm run release
47+
4548
- name: Push to Stable
4649
env:
4750
GITHUB_REPOSITORY: ${{ github.event.repository.name }}

.github/workflows/close-stale-issues.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
stale:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/stale@v9
18+
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
1919
with:
2020
days-before-stale: 7
2121
days-before-close: 7

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v2.4.0
16+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1717
with:
1818
# We must fetch at least the immediate parents so that if this is
1919
# a pull request then we can checkout the head.
@@ -26,15 +26,15 @@ jobs:
2626

2727
# Initializes the CodeQL tools for scanning.
2828
- name: Initialize CodeQL
29-
uses: github/codeql-action/init@v1
29+
uses: github/codeql-action/init@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
3030
# Override language selection by uncommenting this and choosing your languages
3131
# with:
3232
# languages: go, javascript, csharp, python, cpp, java
3333

3434
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
3535
# If this step fails, then you should remove it and run the build manually (see below)
3636
- name: Autobuild
37-
uses: github/codeql-action/autobuild@v1
37+
uses: github/codeql-action/autobuild@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11
3838

3939
# ℹ️ Command-line programs to run using the OS shell.
4040
# 📚 https://git.io/JvXDl
@@ -48,4 +48,4 @@ jobs:
4848
# make release
4949

5050
- name: Perform CodeQL Analysis
51-
uses: github/codeql-action/analyze@v1
51+
uses: github/codeql-action/analyze@6bb031afdd8eb862ea3fc1848194185e076637e5 # v3.28.11

.github/workflows/cypress.yml

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919

2020
- name: Use desired version of NodeJS
21-
uses: actions/setup-node@v3
21+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
2222
with:
2323
node-version-file: '.nvmrc'
2424

2525
- name: Cache Node
26-
uses: actions/cache@v3
26+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
2727
with:
2828
path: |
2929
node_modules
@@ -47,27 +47,27 @@ jobs:
4747
- {name: 'PHP Default', version: null}
4848
core:
4949
- {name: 'WP stable', version: 'latest'}
50-
- {name: 'WP 6.3', version: 'WordPress/WordPress#6.3'}
50+
- {name: 'WP minimum', version: 'WordPress/WordPress#6.6'}
5151
- {name: 'WP trunk', version: 'WordPress/WordPress#master'}
5252
include:
5353
- php: {name: 'PHP 7.4', version: '7.4'}
54-
core: {name: 'WP 6.3', version: 'WordPress/WordPress#6.3'}
54+
core: {name: 'WP minimum', version: 'WordPress/WordPress#6.6'}
5555
- php: {name: 'PHP 8.1', version: '8.1'}
5656
core: {name: 'WP stable', version: 'latest'}
5757
steps:
5858
- name: Checkout
59-
uses: actions/checkout@v3
59+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6060

6161
- name: Use desired version of NodeJS
62-
uses: actions/setup-node@v3
62+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
6363
with:
6464
node-version-file: '.nvmrc'
6565

6666
- name: Check versions
6767
run: npm -v; node -v
6868

6969
- name: Cache Node
70-
uses: actions/cache@v3
70+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
7171
with:
7272
path: |
7373
node_modules
@@ -78,6 +78,26 @@ jobs:
7878
- name: Install dependencies
7979
run: npm install
8080

81+
- name: Get composer cache directory
82+
id: composer-cache
83+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
84+
85+
- name: Cache dependencies
86+
id: cache-composer
87+
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4.2.2
88+
env:
89+
cache-name: cache-composer
90+
with:
91+
path: ${{ steps.composer-cache.outputs.dir }}
92+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/composer.lock') }}
93+
94+
- name: Set PHP version
95+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
96+
with:
97+
php-version: ${{ matrix.php.version }}
98+
coverage: none
99+
tools: composer:v2
100+
81101
- name: Composer install
82102
run: composer install
83103

@@ -93,8 +113,8 @@ jobs:
93113

94114
- name: Log WP environment versions
95115
run: |
96-
npx wp-env run cli "wp core version"
97-
npx wp-env run cli "php --version"
116+
npm run env run cli -- wp core version
117+
npm run env run cli -- php --version
98118
99119
- name: Test
100120
run: npm run cypress:run
@@ -107,11 +127,12 @@ jobs:
107127
npx mochawesome-json-to-md -p ./tests/cypress/reports/mochawesome.json -o ./tests/cypress/reports/mochawesome.md
108128
npx mochawesome-report-generator tests/cypress/reports/mochawesome.json -o tests/cypress/reports/
109129
cat ./tests/cypress/reports/mochawesome.md >> $GITHUB_STEP_SUMMARY
130+
110131
- name: Make artifacts available
111-
uses: actions/upload-artifact@v4
132+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
112133
if: failure()
113134
with:
114-
name: cypress-artifact
135+
name: cypress-artifact-${{matrix.php.name}}-${{matrix.core.name}}
115136
retention-days: 2
116137
path: |
117138
${{ github.workspace }}/tests/cypress/screenshots/

.github/workflows/dependency-review.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: 'Checkout Repository'
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19+
1920
- name: Dependency Review
20-
uses: actions/dependency-review-action@v3
21+
uses: actions/dependency-review-action@72eb03d02c7872a771aacd928f3123ac62ad6d3a # v4.3.3
2122
with:
2223
license-check: true
2324
vulnerability-check: false

.github/workflows/generate-zip.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,21 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v2.4.0
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818
with:
1919
ref: ${{ inputs.ref }}
20+
2021
- name: Use desired version of NodeJS
21-
uses: actions/setup-node@v3
22+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
2223
with:
2324
node-version-file: '.nvmrc'
25+
2426
- name: Set PHP version
25-
uses: shivammathur/setup-php@2.17.0
27+
uses: shivammathur/setup-php@9e72090525849c5e82e596468b86eb55e9cc5401 # v2.32.0
2628
with:
2729
php-version: 7.4
2830
tools: composer:v2, wp
31+
2932
- name: Check versions
3033
run: |
3134
npm -v
@@ -42,7 +45,7 @@ jobs:
4245
rm -rf ./release && unzip ${{ github.event.repository.name }}.zip -d ./release
4346
4447
- name: Upload the ZIP file as an artifact
45-
uses: actions/upload-artifact@v4
48+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
4649
with:
4750
name: ${{ github.event.repository.name }}
4851
path: release

0 commit comments

Comments
 (0)