fix: provision Chromium in staging quality gate

This commit is contained in:
Jesse_Chen
2026-07-27 10:21:07 +08:00
parent 82b42ed346
commit e52cee8368
3 changed files with 20 additions and 0 deletions
@@ -69,6 +69,8 @@ test("quality gate validates relevant changes once and publishes a digest manife
assert.match(workflow, /push:\n\s+branches: \[staging\]/);
assert.match(workflow, /workflow_dispatch:/);
assert.equal((workflow.match(/npm test --prefix frontend/g) ?? []).length, 1);
assert.match(workflow, /python -m pip install playwright/);
assert.match(workflow, /python -m playwright install --with-deps chromium/);
assert.doesNotMatch(workflow, /npm run test:db --prefix frontend/);
assert.match(workflow, /id: api_build[\s\S]*steps\.api_build\.outputs\.digest/);
assert.match(workflow, /id: web_build[\s\S]*steps\.web_build\.outputs\.digest/);