fix(cd): run smoke from isolated workspace
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 35s
CD Pipeline / build-and-deploy (push) Successful in 3m48s
CD Pipeline / post-deploy-checks (push) Successful in 1m38s

This commit is contained in:
Your Name
2026-07-01 17:27:11 +08:00
parent 0b3d5016ce
commit 306fa471f8
3 changed files with 56 additions and 18 deletions

View File

@@ -136,6 +136,15 @@ def test_post_deploy_smoke_uses_workspace_playwright_dependency() -> None:
assert "pnpm exec playwright install chromium --with-deps" in block
assert "pnpm exec playwright install-deps chromium" in block
assert "pnpm exec playwright test tests/e2e/smoke.spec.ts --reporter=line" in block
assert "SMOKE_WORKDIR=/tmp/awoooi-smoke-workspace" in block
assert "-v \"$PWD:/source:ro\"" in block
assert "-v \"$SMOKE_OUTPUT:/github-output\"" in block
assert "-w /tmp" in block
assert "-e GITHUB_OUTPUT=/github-output" in block
assert "-v \"$PWD:/workspace\"" not in block
assert "-w /workspace" not in block
assert "GITHUB_OUTPUT=/workspace/.awoooi-smoke-output" not in block
assert "rm -rf /workspace/node_modules" not in block
assert "npx playwright" not in block