File tree 1 file changed +34
-0
lines changed
1 file changed +34
-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
+ - name : Use Node.js ${{ matrix.node-version }}
19
+ uses : actions/setup-node@v4
20
+ with :
21
+ node-version : ${{ matrix.node-version }}
22
+ cache : " pnpm"
23
+ - name : Install dependencies
24
+ run : pnpm install
25
+ - name : Install Playwright Browsers
26
+ run : npx playwright install --with-deps
27
+ - name : Run Playwright tests
28
+ run : npx playwright test
29
+ - uses : actions/upload-artifact@v4
30
+ if : ${{ !cancelled() }}
31
+ with :
32
+ name : playwright-report
33
+ path : playwright-report/
34
+ retention-days : 30
You can’t perform that action at this time.
0 commit comments