File tree 1 file changed +36
-0
lines changed
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
+ services :
12
+ nats :
13
+ image : nats:latest
14
+ ports :
15
+ - 4222:4222
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ - name : Install pnpm
19
+ uses : pnpm/action-setup@v4
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