ci(runner): install only Chromium headless shell
This commit is contained in:
parent
6a8d4c597c
commit
fca39344b1
|
|
@ -910,15 +910,15 @@ jobs:
|
|||
if: matrix.profileId == 'legacy-claude'
|
||||
run: npm install --global --omit=dev @anthropic-ai/claude-code@2.1.19
|
||||
|
||||
- name: Install Chromium
|
||||
- name: Install Chromium headless shell
|
||||
run: |
|
||||
set -euo pipefail
|
||||
for attempt in 1 2 3; do
|
||||
if pnpm exec playwright install --with-deps chromium; then
|
||||
if pnpm exec playwright install --with-deps --only-shell chromium; then
|
||||
exit 0
|
||||
fi
|
||||
if [ "$attempt" -eq 3 ]; then
|
||||
echo "Chromium installation failed after $attempt attempts." >&2
|
||||
echo "Chromium headless shell installation failed after $attempt attempts." >&2
|
||||
exit 1
|
||||
fi
|
||||
sleep "$((attempt * 10))"
|
||||
|
|
|
|||
|
|
@ -238,6 +238,12 @@ describe("public repository paid workflow security", () => {
|
|||
expect(paidJob).toMatch(
|
||||
/Reauthorize paid execution before provider access[\s\S]*actions\/checkout@[0-9a-f]{40}[\s\S]*persist-credentials: false[\s\S]*Download resolved target lockfile/,
|
||||
);
|
||||
expect(paidJob).toContain(
|
||||
"pnpm exec playwright install --with-deps --only-shell chromium",
|
||||
);
|
||||
expect(paidJob).not.toContain(
|
||||
"pnpm exec playwright install --with-deps chromium",
|
||||
);
|
||||
const paidInstall = paidJob.indexOf(
|
||||
"pnpm install --frozen-lockfile --ignore-scripts",
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue