File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Playwright Tests
2+ on :
3+ push :
4+ branches : [main, master]
5+ pull_request :
6+ branches : [main, master]
7+ jobs :
8+ test :
9+ timeout-minutes : 60
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+ - uses : actions/setup-node@v4
14+ with :
15+ node-version : lts/*
16+ - name : Install pnpm
17+ uses : pnpm/action-setup@v4
18+ with :
19+ version : 10
20+ - name : Use Node.js ${{ matrix.node-version }}
21+ uses : actions/setup-node@v4
22+ with :
23+ node-version : ${{ matrix.node-version }}
24+ cache : " pnpm"
25+ - name : Install dependencies
26+ run : pnpm install
27+ - name : Install Playwright Browsers
28+ run : npx playwright install --with-deps
29+ - name : Run Playwright tests
30+ run : npx playwright test
31+ - uses : actions/upload-artifact@v4
32+ if : ${{ !cancelled() }}
33+ with :
34+ name : playwright-report
35+ path : playwright-report/
36+ retention-days : 30
You can’t perform that action at this time.
0 commit comments