File tree Expand file tree Collapse file tree 1 file changed +21
-19
lines changed Expand file tree Collapse file tree 1 file changed +21
-19
lines changed Original file line number Diff line number Diff line change 1
1
name : Playwright Tests
2
2
on :
3
3
push :
4
- branches : [ main, master ]
5
- pull_request :
6
- branches : [ main, master ]
4
+ branches :
5
+ - main
6
+ - master
7
+ - develop
8
+ pull_request : null
9
+ workflow_dispatch : null
7
10
jobs :
8
11
test :
9
12
timeout-minutes : 60
10
13
runs-on : ubuntu-latest
11
14
steps :
12
- - uses : actions/checkout@v3
13
- - uses : actions/setup-node@v3
14
- with :
15
- node-version : 18
16
- - name : Install dependencies
17
- run : npm ci
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@v3
23
- if : always()
24
- with :
25
- name : playwright-report
26
- path : playwright-report/
27
- retention-days : 30
15
+ - uses : actions/checkout@v4
16
+ - run : echo "node_version=$(cat .github/nodejs.version)" >> $GITHUB_ENV
17
+ uses : actions/setup-node@v3
18
+ - name : Install dependencies
19
+ run : yarn install --frozen-lockfile
20
+ - name : Install Playwright Browsers
21
+ run : yarn playwright install --with-deps
22
+ - name : Run Playwright tests
23
+ run : yarn playwright test
24
+ - uses : actions/upload-artifact@v3
25
+ if : always()
26
+ with :
27
+ name : playwright-report
28
+ path : playwright-report/
29
+ retention-days : 30
You can’t perform that action at this time.
0 commit comments