File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Playwright Tests
22on :
33 push :
4- branches : [ main, master ]
4+ branches :
5+ - " *"
6+
57 pull_request :
6- branches : [ main, master ]
8+ branches :
9+ - " *"
710jobs :
811 test :
9- timeout-minutes : 60
10- runs-on : macos-latest
12+ runs-on : ubuntu-latest
13+ timeout-minutes : 15
1114 steps :
12- - uses : actions/checkout@v4
13- - uses : actions/setup-node@v4
14- with :
15- node-version : lts/*
16- - name : Install dependencies
17- run : npm install
18- - name : Install Playwright Browsers
19- run : npx playwright install --with-deps
20- - name : Run Playwright tests
21- run : npx playwright test
22- - uses : actions/upload-artifact@v4
23- if : always()
24- with :
25- name : playwright-report
26- path : playwright-report/
27- retention-days : 30
15+ - name : Checkout
16+ uses : actions/checkout@v4
17+
18+ - name : Set up Node
19+ uses : actions/setup-node@v4
20+ with :
21+ cache : pnpm
22+ node-version-file : .nvmrc
23+ check-latest : true
24+
25+ - name : Install deps
26+ run : |
27+ npm install
28+ npx playwright install --with-deps
29+
30+ - name : Test
31+ run : npx playwright test --ignore-snapshots
32+
33+ - name : Upload Playwright Report
34+ uses : actions/upload-artifact@v4
35+ if : always()
36+ with :
37+ name : playwright-report
38+ path : playwright-report/
39+ retention-days : 30
You can’t perform that action at this time.
0 commit comments