File tree Expand file tree Collapse file tree 2 files changed +74
-0
lines changed
Expand file tree Collapse file tree 2 files changed +74
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Format Check
2+
3+ on :
4+ push :
5+ branches : [ main, master ]
6+ pull_request :
7+ branches : [ main, master ]
8+
9+ jobs :
10+ format :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Setup Node.js
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version : ' 20'
20+ cache : ' npm'
21+
22+ - name : Install dependencies
23+ run : npm ci
24+
25+ - name : Check Prettier formatting
26+ run : npm run format:check
Original file line number Diff line number Diff line change 1+ name : Playwright Tests
2+
3+ on :
4+ push :
5+ branches : [ main, master ]
6+ pull_request :
7+ branches : [ main, master ]
8+
9+ jobs :
10+ test :
11+ timeout-minutes : 60
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v4
16+
17+ - name : Setup Node.js
18+ uses : actions/setup-node@v4
19+ with :
20+ node-version : ' 20'
21+ cache : ' npm'
22+
23+ - name : Install dependencies
24+ run : npm ci
25+
26+ - name : Install Playwright Browsers
27+ run : npx playwright install --with-deps chromium
28+
29+ - name : Run Playwright tests
30+ run : npm run test:e2e
31+ env :
32+ CI : true
33+
34+ - name : Upload Playwright Report
35+ uses : actions/upload-artifact@v4
36+ if : always()
37+ with :
38+ name : playwright-report
39+ path : playwright-report/
40+ retention-days : 30
41+
42+ - name : Upload Test Results
43+ uses : actions/upload-artifact@v4
44+ if : failure()
45+ with :
46+ name : test-results
47+ path : test-results/
48+ retention-days : 30
You can’t perform that action at this time.
0 commit comments