Skip to content

Commit 16cc2f8

Browse files
committed
update @wordpress/env package and reset yaml changes
1 parent 015aa93 commit 16cc2f8

3 files changed

Lines changed: 11 additions & 80 deletions

File tree

‎.github/workflows/playwright-matrix.yml‎

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -134,53 +134,6 @@ jobs:
134134
- name: NPM Install
135135
run: npm install --legacy-peer-deps
136136

137-
- name: Patch wp-env for EOL Debian bullseye (PHP 7.4/8.0 only)
138-
if: matrix.phpVersion == '7.4' || matrix.phpVersion == '8.0'
139-
run: |
140-
python3 - <<'PYEOF'
141-
import sys
142-
143-
p = "node_modules/@wordpress/env/lib/runtime/docker/docker-config.js"
144-
s = open(p).read()
145-
146-
# Anchor on wp-env's own "archived Debian" block. It lives only in the
147-
# wordpress (Debian) Dockerfile, so the Alpine cli image is untouched.
148-
anchor = "RUN sed -i '/buster-updates/d' /etc/apt/sources.list"
149-
150-
if "bullseye-security" in s:
151-
print("already patched; nothing to do")
152-
sys.exit(0)
153-
154-
if s.count(anchor) != 1:
155-
sys.exit("anchor found %d times (expected 1); wp-env layout changed" % s.count(anchor))
156-
157-
inject = "\n".join([
158-
anchor,
159-
"",
160-
"# bullseye (LTS ended 2026-08-31): its InRelease has expired and the",
161-
"# security pool is being pruned. archive.debian.org never carried",
162-
"# bullseye-security, so drop that suite and take main/updates from the",
163-
"# permanent archive instead.",
164-
"RUN sed -i '/bullseye-security/d' /etc/apt/sources.list",
165-
"RUN sed -i 's|deb.debian.org/debian bullseye|archive.debian.org/debian bullseye|g' /etc/apt/sources.list",
166-
"RUN echo 'Acquire::Check-Valid-Until \"false\";' > /etc/apt/apt.conf.d/99no-check-valid-until",
167-
])
168-
169-
open(p, "w").write(s.replace(anchor, inject))
170-
print("patched ok")
171-
PYEOF
172-
173-
- name: Show patched wp-env Dockerfile (PHP 7.4/8.0 only)
174-
if: matrix.phpVersion == '7.4' || matrix.phpVersion == '8.0'
175-
env:
176-
MATRIX_PHP: ${{ matrix.phpVersion }}
177-
run: |
178-
node -e '
179-
const { wordpressDockerFileContents } = require("./node_modules/@wordpress/env/lib/runtime/docker/docker-config.js");
180-
const config = { env: { development: { phpVersion: process.env.MATRIX_PHP, port: 8886 } } };
181-
process.stdout.write(wordpressDockerFileContents("development", config));
182-
'
183-
184137
- name: Build JavaScript
185138
run: npm run build
186139

@@ -225,18 +178,6 @@ jobs:
225178
npx wp-env run cli wp core version
226179
echo "WordPress is ready!"
227180
228-
- name: Drop broken third-party apt repos on the runner
229-
run: |
230-
# Playwright's OS dependencies come from Ubuntu's own repos
231-
# so these third-party sources are unnecessary here and safe to remove.
232-
# Scoped to sources.list.d so /etc/apt/sources.list (Ubuntu's own repos)
233-
# can never be removed.
234-
sudo grep -rl 'dl\.google\.com' /etc/apt/sources.list.d/ 2>/dev/null \
235-
| sudo xargs -r rm -fv || true
236-
sudo apt-get clean
237-
sudo rm -rf /var/lib/apt/lists/*
238-
sudo apt-get update
239-
240181
- name: Install Playwright Browsers
241182
run: npx playwright install --with-deps chromium
242183

‎package-lock.json‎

Lines changed: 9 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@playwright/test": "^1.60.0",
4646
"@tailwindcss/forms": "^0.5.10",
4747
"@types/node": "^26.4.0",
48-
"@wordpress/env": "^11.12.0",
48+
"@wordpress/env": "^11.15.0",
4949
"@wordpress/scripts": "^34",
5050
"axe-core": "^4.13.0",
5151
"node-fetch": "^2.7.0",
@@ -88,4 +88,4 @@
8888
"test:clean-module": "bash ./.github/scripts/test-clean-module",
8989
"test:unit": "wp-scripts test-unit-js"
9090
}
91-
}
91+
}

0 commit comments

Comments
 (0)