Skip to content

Commit 3ef8910

Browse files
Merge branch 'trunk' into add/code_coverage_auto_sizes
2 parents e861831 + 1fc81a3 commit 3ef8910

File tree

100 files changed

+3295
-1370
lines changed

Some content is hidden

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

100 files changed

+3295
-1370
lines changed

.github/workflows/bump-wordpress-tested-up-to.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
matrix: ${{ steps.set-matrix.outputs.plugins }}
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@v5
2020

2121
- name: Configure plugin matrix
2222
id: set-matrix
@@ -46,7 +46,7 @@ jobs:
4646
plugin: ${{ fromJSON(needs.prepare-matrix.outputs.matrix) }}
4747
steps:
4848
- name: Checkout
49-
uses: actions/checkout@v4
49+
uses: actions/checkout@v5
5050

5151
- name: Download WordPress.org readme
5252
run: |

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
security-events: write
3434
steps:
3535
- name: Checkout
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@v5
3737

3838
- name: Initialize CodeQL
3939
uses: github/codeql-action/init@v3

.github/workflows/deploy-plugins.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
matrix: ${{ steps.set-matrix.outputs.plugins }}
2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v5
3030

3131
- name: Set matrix
3232
id: set-matrix
@@ -58,7 +58,7 @@ jobs:
5858
plugin: ${{ fromJSON(needs.pre-run.outputs.matrix) }}
5959
steps:
6060
- name: Checkout
61-
uses: actions/checkout@v4
61+
uses: actions/checkout@v5
6262

6363
- name: Setup Node.js (.nvmrc)
6464
uses: actions/setup-node@v4
@@ -191,7 +191,7 @@ jobs:
191191
192192
- name: Download artifact
193193
if: steps.artifact-existence.outputs.exists == 'true'
194-
uses: actions/download-artifact@v4
194+
uses: actions/download-artifact@v5
195195
with:
196196
name: ${{ matrix.plugin }}
197197
path: ./build/dist

.github/workflows/e2e-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
timeout-minutes: 20
3434
steps:
3535
- name: Checkout
36-
uses: actions/checkout@v4
36+
uses: actions/checkout@v5
3737

3838
- name: Setup Node.js (.nvmrc)
3939
uses: actions/setup-node@v4

.github/workflows/js-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
timeout-minutes: 20
3939
steps:
4040
- uses: styfle/[email protected]
41-
- uses: actions/checkout@v4
41+
- uses: actions/checkout@v5
4242
- name: Setup Node.js (via .nvmrc)
4343
uses: actions/setup-node@v4
4444
with:

.github/workflows/php-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
timeout-minutes: 20
3535
steps:
3636
- uses: styfle/[email protected]
37-
- uses: actions/checkout@v4
37+
- uses: actions/checkout@v5
3838
- uses: shivammathur/setup-php@v2
3939
with:
4040
php-version: latest

.github/workflows/php-test-plugins.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
WP_ENV_CORE: ${{ matrix.wp == 'trunk' && 'WordPress/WordPress' || format( 'https://wordpress.org/wordpress-{0}.zip', matrix.wp ) }}
5959
steps:
6060
- uses: styfle/[email protected]
61-
- uses: actions/checkout@v4
61+
- uses: actions/checkout@v5
6262
- name: Setup Node.js (.nvmrc)
6363
uses: actions/setup-node@v4
6464
with:

.github/workflows/spell-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
name: Spell Check with Typos
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v4
10+
- uses: actions/checkout@v5
1111
- name: Search for misspellings
1212
uses: crate-ci/typos@master
1313
with:

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Plugin | Slug | Experimental | Lin
1818
[Image Placeholders][1] | `dominant-color-images` | No | [Source][9], [Issues][17], [PRs][25]
1919
[Image Prioritizer][7] | `image-prioritizer` | No | [Source][15], [Issues][23], [PRs][31]
2020
[Modern Image Formats][2] | `webp-uploads` | No | [Source][10], [Issues][18], [PRs][26]
21+
[No-Cache BFCache][41] | `nocache-bfcache` | No | [Source][42], [Issues][43], [PRs][44]
2122
[Optimization Detective][33] | `optimization-detective` | No | [Source][34], [Issues][35], [PRs][36]
2223
[Performant Translations][3] | `performant-translations` | No | [Source][11], [Issues][19], [PRs][27]
2324
[Speculative Loading][4] | `speculation-rules` | No | [Source][12], [Issues][20], [PRs][28]
@@ -34,6 +35,7 @@ Plugin | Slug | Experimental | Lin
3435
[8]: https://wordpress.org/plugins/web-worker-offloading/
3536
[33]: https://wordpress.org/plugins/optimization-detective/
3637
[37]: https://wordpress.org/plugins/view-transitions/
38+
[41]: https://wordpress.org/plugins/nocache-bfcache/
3739

3840
[9]: https://github.com/WordPress/performance/tree/trunk/plugins/dominant-color-images
3941
[10]: https://github.com/WordPress/performance/tree/trunk/plugins/webp-uploads
@@ -45,6 +47,7 @@ Plugin | Slug | Experimental | Lin
4547
[16]: https://github.com/WordPress/performance/tree/trunk/plugins/web-worker-offloading
4648
[34]: https://github.com/WordPress/performance/tree/trunk/plugins/optimization-detective
4749
[38]: https://github.com/WordPress/performance/tree/trunk/plugins/view-transitions
50+
[42]: https://github.com/westonruter/nocache-bfcache
4851

4952
[17]: https://github.com/WordPress/performance/issues?q=is%3Aopen+label%3A%22%5BPlugin%5D+Image+Placeholders%22
5053
[18]: https://github.com/WordPress/performance/issues?q=is%3Aopen+label%3A%22%5BPlugin%5D+Modern+Image+Formats%22
@@ -56,6 +59,7 @@ Plugin | Slug | Experimental | Lin
5659
[24]: https://github.com/WordPress/performance/issues?q=is%3Aopen%20label%3A%22%5BPlugin%5D%20Web%20Worker%20Offloading%22
5760
[35]: https://github.com/WordPress/performance/issues?q=is%3Aopen%20label%3A%22%5BPlugin%5D%20Optimization%20Detective%22
5861
[39]: https://github.com/WordPress/performance/issues?q=is%3Aopen%20label%3A%22%5BPlugin%5D%20View%20Transitions%22
62+
[43]: https://github.com/westonruter/nocache-bfcache/issues
5963

6064
[25]: https://github.com/WordPress/performance/pulls?q=is%3Apr+is%3Aopen+label%3A%22%5BPlugin%5D+Image+Placeholders%22
6165
[26]: https://github.com/WordPress/performance/pulls?q=is%3Apr+is%3Aopen+label%3A%22%5BPlugin%5D+Modern+Image+Formats%22
@@ -67,5 +71,6 @@ Plugin | Slug | Experimental | Lin
6771
[32]: https://github.com/WordPress/performance/pulls?q=is%3Apr+is%3Aopen+label%3A%22%5BPlugin%5D+Web%20Worker%20Offloading%22
6872
[36]: https://github.com/WordPress/performance/pulls?q=is%3Apr+is%3Aopen+label%3A%22%5BPlugin%5D+Optimization%20Detective%22
6973
[40]: https://github.com/WordPress/performance/pulls?q=is%3Apr+is%3Aopen+label%3A%22%5BPlugin%5D+View%20Transitions%22
74+
[44]: https://github.com/westonruter/nocache-bfcache/pulls
7075

7176
Note that the plugin names sometimes diverge from the plugin slugs due to scope changes. For example, a plugin's purpose may change as some of its features are merged into WordPress core.

bin/test-php-watch.sh

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,29 @@
11
#!/bin/bash
2-
if ! which inotifywait >/dev/null 2>&1; then
3-
echo "Error: the inotifywait command is not available. Make sure you have inotify-tools installed."
4-
exit 1
2+
3+
# Check for the fswatch command
4+
if ! command -v fswatch >/dev/null 2>&1; then
5+
echo "Error: The fswatch command is not available."
6+
echo "On macOS, you can install it with Homebrew: brew install fswatch"
7+
exit 1
58
fi
69

10+
cd "$(git rev-parse --show-toplevel)"
11+
712
while true; do
813
echo "Waiting for a change in the plugins directory..."
9-
output=$(inotifywait -e modify,create,delete -r ./plugins --include '.*(\.php$|/tests/.*)' 2> /dev/null)
10-
plugin_slug=$(echo "$output" | awk -F/ '{print $3}')
14+
15+
file=$(fswatch -1 -r \
16+
--event Created \
17+
--event Updated \
18+
--event Removed \
19+
--include '\.php$' \
20+
--include '/tests/' \
21+
./plugins 2>/dev/null | head -n 1)
22+
23+
# Make the file path relative.
24+
file="${file#"$PWD/"}"
25+
26+
plugin_slug=$(echo "$file" | awk -F/ '{print $2}')
1127
sleep 1 # Give the user a chance to copy text from terminal before IDE auto-saves.
1228
clear
1329
echo "Running phpunit tests for $(tput bold)$plugin_slug$(tput sgr0):"

0 commit comments

Comments
 (0)