File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : 🎭 Playwright Tests
2+
3+ on :
4+ push :
5+ branches : [ main, develop, cleanup/ecommerce-refactor-prune ]
6+ pull_request :
7+ branches : [ main, develop ]
8+
9+ jobs :
10+ test :
11+ timeout-minutes : 60
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - name : 📦 Checkout code
16+ uses : actions/checkout@v4
17+
18+ - name : 🟢 Setup Node.js
19+ uses : actions/setup-node@v4
20+ with :
21+ node-version : 18
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 Playwright tests
31+ run : npx playwright test
32+ env :
33+ CI : true
34+
35+ - name : 📊 Upload Playwright Report
36+ uses : actions/upload-artifact@v4
37+ if : always()
38+ with :
39+ name : playwright-report
40+ path : playwright-report/
41+ retention-days : 30
42+
43+ - name : 📸 Upload test results
44+ uses : actions/upload-artifact@v4
45+ if : always()
46+ with :
47+ name : test-results
48+ path : test-results/
49+ retention-days : 30
50+
51+ - name : 💾 Upload storage state
52+ uses : actions/upload-artifact@v4
53+ if : always()
54+ with :
55+ name : storage-state
56+ path : storage/
57+ retention-days : 7
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ npx playwright show-report
5757- Run a single spec
5858
5959``` bash
60- npx playwright test tests/order.spec.ts
60+ npx playwright test tests/pickup-create-your-own- order.spec.ts
6161```
6262
6363- Headed mode (debug visually)
You can’t perform that action at this time.
0 commit comments