Commit 016fba4
ci: smoke workflow runs post-deploy mvp suite on push to main (#126)
Was marked out-of-scope in the original #126 issue body, but it is the
operational link that closes the deploy loop -- without it, operators
have to remember to run pnpm test:e2e by hand after every deploy.
.github/workflows/smoke.yml
- Triggers: push to main, plus manual workflow_dispatch with an
optional include_cost boolean for the @cost-tagged tests
(Anthropic + Resend charges).
- 5-minute timeout. Default run skips @cost via --grep-invert.
- Uploads the playwright-report artifact on failure (7-day retention).
- Uses INCLUDE_COST as an env var rather than ${{ inputs.* }} inline,
per the workflow-injection guidance.
Sequencing
- This workflow runs against the deployed production URL
(default https://rafters.studio per playwright.config.ts), so it
fires AFTER wrangler deploy. Order on push to main:
1. CI workflow runs typecheck + unit tests
2. (Operator) wrangler deploy from local
3. Smoke workflow fires (also on push) and exercises the deployed
worker
- If a smoke run fires before the deploy lands, it will fail against
the prior version. That is correct behavior -- a deploy hasn't
happened, so the new code isn't live, so the smoke should report
the gap.
Out of scope
- Auto-deploy from CI (operator-controlled)
- Slack / PagerDuty notification on failure
- Smoke against staging (single env for MVP)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ad87525 commit 016fba4
1 file changed
Lines changed: 57 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
0 commit comments