Skip to content

Commit 753c325

Browse files
committed
Merge branch 'develop' into do/post-release-merge-190
# Conflicts: # .github/workflows/cypress.yml # .github/workflows/lint.yml # distributor.php # includes/classes/ExternalConnections/WordPressExternalConnection.php # includes/classes/InternalConnections/NetworkSiteConnection.php # includes/utils.php # package-lock.json # package.json # readme.txt # tests/bin/set-core-version.js
2 parents f3a6112 + e072514 commit 753c325

File tree

84 files changed

+38306
-42418
lines changed

Some content is hidden

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

84 files changed

+38306
-42418
lines changed

.babelrc

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

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
release/*
3+
dist/*
4+
docs-built/*
5+
vendor/*
6+
gulp-tasks/*

.eslintrc.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
{
2-
"extends": "@10up/eslint-config"
2+
"extends": [ "plugin:@wordpress/eslint-plugin/recommended" ],
3+
"settings": {
4+
"import/core-modules": [ "jquery", "underscore" ]
5+
},
6+
"rules": {
7+
"import/no-extraneous-dependencies": ["error", {"packageDir": ["./", "./node_modules/@wordpress/scripts"] }]
8+
}
39
}

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
**Release checklist for the version 1.x branch.**
2-
3-
- [x] Branch: Starting from `develop-v1`, create a release branch named `release/X.Y.Z` for your changes.
1+
- [x] Branch: Starting from `develop`, create a release branch named `release/X.Y.Z` for your changes.
42
- [ ] Version bump: Bump the version number in `distributor.php`, `package.json`, and `readme.txt` 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.
5-
- [ ] New files: Ensure any new files, especially in the vendor folder, are correctly included in `gulp-tasks/copy.js`.
3+
- [ ] New files: Ensure any new files, especially in the vendor folder, are correctly included in `webpack.config.release.js`.
64
- [ ] Changelog: Add/update the changelog in `CHANGELOG.md`.
75
- [ ] Props: Update `CREDITS.md` file with any new contributors, confirm maintainers are accurate.
86
- [ ] 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.
97
- [ ] Since tag updates: ensure `@since` tags indicate the new version, replacing `x.x.x`, `n.e.x.t` and other placeholders.
10-
- [ ] Merge: Make a non-fast-forward merge from your release branch to `develop-v1` (or merge the Pull Request), then do the same for `develop-v1` into `trunk` (`git checkout trunk && git merge --no-ff develop-v1`). `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 trunk && git merge --no-ff develop`). `trunk` contains the stable development version.
119
- [ ] Build: Wait for the [Build Stable Release Action](https://github.com/10up/distributor/actions?query=workflow%3A%22Build+Stable+Release%22) to finish running.
1210
- [ ] Update this pull request's status from `draft` to `ready to merge`.
1311
- [ ] Review: Do a review of the commit to the `stable` branch to ensure the contents of the diffs are as expected.

.github/workflows/cypress.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,22 @@ on:
1313
jobs:
1414
cypress:
1515
name: ${{ matrix.core.name }} / ${{ matrix.php.name }}
16+
## Pending upgrade of `@wordpress/env` package.
17+
continue-on-error: ${{ matrix.core.version == 'WordPress/WordPress#master' }}
1618
runs-on: ubuntu-latest
1719
strategy:
1820
matrix:
1921
php:
2022
- {name: 'PHP Default', version: null}
2123
core:
22-
- {name: 'WP latest', version: 'latest'}
24+
- {name: 'WP stable', version: 'latest'}
25+
- {name: 'WP 5.7', version: 'WordPress/WordPress#5.7'}
2326
- {name: 'WP trunk', version: 'WordPress/WordPress#master'}
2427
include:
28+
- php: {name: 'PHP 7.4', version: '7.4'}
29+
core: {name: 'WP 5.7', version: 'WordPress/WordPress#5.7'}
2530
- php: {name: 'PHP 8.1', version: '8.1'}
2631
core: {name: 'WP stable', version: 'latest'}
27-
- php: {name: 'PHP 7.4', version: '7.4' }
28-
core: {name: 'WP minimum', version: 'WordPress/WordPress#5.2'}
2932
steps:
3033
- name: Checkout
3134
uses: actions/checkout@v3

.github/workflows/lint.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,19 @@ jobs:
2929
run: npm -v; node -v
3030
- name: npm install
3131
run: npm install
32-
- name: eslint
33-
uses: icrawl/action-eslint@v1
32+
- name: Generate linting report
33+
run: npm run lint:js -- --output-file eslint-report.json --format json
34+
continue-on-error: true
35+
- name: Annotate code linting results
36+
uses: ataylorme/[email protected]
3437
with:
35-
custom-glob: assets/js
36-
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
repo-token: '${{ secrets.GITHUB_TOKEN }}'
39+
report-json: 'eslint-report.json'
40+
- name: Update summary
41+
run: |
42+
npm_config_yes=true npx github:10up/eslint-json-to-md --path ./eslint-report.json --output ./eslint-report.md
43+
cat eslint-report.md >> $GITHUB_STEP_SUMMARY
44+
if: ${{ failure() }}
3845
phpcs:
3946
name: phpcs
4047
runs-on: ubuntu-latest
@@ -68,9 +75,12 @@ jobs:
6875
- name: Check PHPCS standard
6976
run: ./vendor/bin/phpcs -i
7077

78+
- name: Check Compatibility of main plugin file.
79+
run: ./vendor/bin/phpcs ./distributor.php --runtime-set testVersion 5.6- --standard=PHPCompatibilityWP
80+
7181
- name: PHPCS check
7282
id: phpcs-sniffs
73-
run: ./vendor/bin/phpcs . --runtime-set testVersion 5.6- --report-full --report-checkstyle=./.github/phpcs-report.xml
83+
run: ./vendor/bin/phpcs . --report-full --report-checkstyle=./.github/phpcs-report.xml
7484

7585
- name: Show PHPCS results in PR
7686
if: ${{ always() }}

.github/workflows/test.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
# We claim to support from 5.6+ but WP Mock only supports 7.1+
29-
php: [ '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ]
28+
php: [ '7.4', '8.0', '8.1' ]
3029
os: [ ubuntu-latest ]
3130

3231
steps:
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "WordPress version checker"
2+
on:
3+
push:
4+
branches:
5+
- develop
6+
- trunk
7+
pull_request:
8+
branches:
9+
- develop
10+
schedule:
11+
- cron: '0 0 * * 1'
12+
13+
jobs:
14+
wordpress-version-checker:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: WordPress version checker
18+
uses: skaut/[email protected]
19+
with:
20+
repo-token: ${{ secrets.GITHUB_TOKEN }}

.npmpackagejsonlintrc.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"extends": "@wordpress/npm-package-json-lint-config",
3+
"rules": {
4+
"description-format": [
5+
"error",
6+
{
7+
"requireCapitalFirstLetter": true,
8+
"requireEndingPeriod": true
9+
}
10+
],
11+
"prefer-no-devDependencies": "error",
12+
"require-publishConfig": "error",
13+
"require-repository-directory": "error",
14+
"valid-values-publishConfig": [
15+
"error",
16+
[
17+
{
18+
"access": "public"
19+
}
20+
]
21+
]
22+
},
23+
"overrides": [
24+
{
25+
"patterns": [ "./package.json" ],
26+
"rules": {
27+
"require-publishConfig": "off",
28+
"require-repository-directory": "off",
29+
"prefer-no-devDependencies": "off"
30+
}
31+
}
32+
]
33+
}

.stylelintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
release/*
3+
dist/*
4+
docs-built/*
5+
vendor/*
6+
gulp-tasks/*

0 commit comments

Comments
 (0)