Skip to content

Commit 7baa5ac

Browse files
author
DavidQ
committed
Add CI workflow to enforce Workspace V2 Playwright validation gate on push and PR - PR_11_322
1 parent 74c579f commit 7baa5ac

6 files changed

Lines changed: 112 additions & 1 deletion

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Workspace V2 Playwright Gate
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
workspace-v2-playwright:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node LTS
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: "lts/*"
22+
cache: npm
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Install Playwright browsers
28+
run: npx playwright install --with-deps
29+
30+
- name: Run Workspace V2 gate
31+
run: npm run test:workspace-v2
32+
33+
- name: Upload Workspace V2 test artifacts
34+
if: always()
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: workspace-v2-playwright-results
38+
path: tests/results
39+
if-no-files-found: warn

docs/dev/codex_commands.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,13 @@ PR_11_320
223223
npx @openai/codex run --model gpt-5.3-codex --reasoning medium "Implement PR_11_320: Update Workspace V2 Playwright gate to execute installed Playwright command path only, preserving fail-fast and summary output."
224224
```
225225

226+
---
227+
PR_11_322
228+
229+
```bash
230+
npx @openai/codex run --model gpt-5.3-codex --reasoning medium "Implement PR_11_322: Run Workspace V2 Playwright tests automatically via CI."
231+
```
232+
226233
---
227234
PR_11_321
228235

docs/dev/commit_comment.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Document Workspace V2 Playwright validation gate usage and expected output/exit behavior - PR 11.321
1+
Add GitHub Actions Workspace V2 Playwright gate with artifact upload from tests/results - PR 11.322
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# PR_11_322 Report
2+
3+
## Scope
4+
- CI workflow configuration only for Workspace V2 Playwright gate.
5+
6+
## Files Changed
7+
- `.github/workflows/workspace-v2-playwright.yml`
8+
- `docs/pr/PR_11_322_WORKSPACE_V2_PLAYWRIGHT_CI_GATE/PLAN_PR.md`
9+
- `docs/pr/PR_11_322_WORKSPACE_V2_PLAYWRIGHT_CI_GATE/BUILD_PR.md`
10+
- `docs/dev/reports/PR_11_322_report.md`
11+
- `docs/dev/codex_commands.md`
12+
- `docs/dev/commit_comment.txt`
13+
14+
## Validation Run
15+
- `npx --yes js-yaml .github/workflows/workspace-v2-playwright.yml`
16+
- `rg -n "npm run test:workspace-v2|tests/results|upload-artifact|pull_request|push" .github/workflows/workspace-v2-playwright.yml`
17+
18+
## Validation Results
19+
- PASS: workflow YAML parses successfully.
20+
- PASS: workflow triggers on `push` and `pull_request` for `main`.
21+
- PASS: workflow runs `npm run test:workspace-v2`.
22+
- PASS: workflow uploads `tests/results` artifacts.
23+
- PASS: gate fails build on test failure by default GitHub Actions step behavior (non-zero command exit).
24+
25+
## Full Samples Smoke
26+
- Skipped intentionally. This PR is CI workflow wiring only and does not change runtime behavior, tools, or samples.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# BUILD_PR_11_322
2+
3+
## Implementation
4+
- Added `.github/workflows/workspace-v2-playwright.yml`:
5+
- Trigger:
6+
- `push` on `main`
7+
- `pull_request` on `main`
8+
- Steps:
9+
- `actions/checkout@v4`
10+
- `actions/setup-node@v4` with Node `lts/*`
11+
- `npm ci`
12+
- `npx playwright install --with-deps`
13+
- `npm run test:workspace-v2`
14+
- upload artifact `tests/results` using `actions/upload-artifact@v4` (`if: always()`)
15+
- Updated `docs/dev/codex_commands.md` with PR_11_322 command entry.
16+
- Updated `docs/dev/commit_comment.txt` with PR_11_322 commit comment text.
17+
18+
## Validation
19+
- `npx --yes js-yaml .github/workflows/workspace-v2-playwright.yml`
20+
- `rg -n "npm run test:workspace-v2|tests/results|upload-artifact|pull_request|push" .github/workflows/workspace-v2-playwright.yml`
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# PLAN_PR_11_322
2+
3+
## Purpose
4+
Run Workspace V2 Playwright tests automatically in CI for `main` pushes and pull requests targeting `main`.
5+
6+
## Scope
7+
- `.github/workflows/workspace-v2-playwright.yml`
8+
- `docs/pr/PR_11_322_WORKSPACE_V2_PLAYWRIGHT_CI_GATE/BUILD_PR.md`
9+
- `docs/pr/PR_11_322_WORKSPACE_V2_PLAYWRIGHT_CI_GATE/PLAN_PR.md`
10+
- `docs/dev/reports/PR_11_322_report.md`
11+
- `docs/dev/codex_commands.md`
12+
- `docs/dev/commit_comment.txt`
13+
14+
## Steps
15+
1. Add a dedicated GitHub Actions workflow for Workspace V2 Playwright gate.
16+
2. Configure triggers on `push` and `pull_request` for `main`.
17+
3. Run checkout, Node LTS setup, `npm ci`, and `npm run test:workspace-v2`.
18+
4. Upload `tests/results` as an artifact for pass/fail inspection.
19+
5. Run targeted workflow YAML validation locally.

0 commit comments

Comments
 (0)