File tree Expand file tree Collapse file tree 1 file changed +28
-12
lines changed
Expand file tree Collapse file tree 1 file changed +28
-12
lines changed Original file line number Diff line number Diff line change 77 - master
88 - main
99 - develop
10- - stage
11- - support/*
1210 pull_request :
1311 branches :
12+ - master
1413 - main
15- - develop
16-
1714jobs :
18- tests :
15+ test_linux :
1916 name : ${{ matrix.os }}
2017 strategy :
2118 fail-fast : false
2219 matrix :
23- os : [ubuntu-20.04, windows-2019 ]
20+ os : [ubuntu-20.04]
2421 runs-on : ${{ matrix.os }}
2522 steps :
2623 - uses : actions/checkout@v2
2724 - uses : actions/setup-node@v1
2825 with :
2926 node-version : 18
3027 - uses : microsoft/playwright-github-action@v1
31- - uses : actions/cache@v1
28+ - uses : actions/cache@v2
29+ with :
30+ path : ~/.npm
31+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
32+ restore-keys : |
33+ ${{ runner.os }}-node-
34+ - name : Install dependencies
35+ run : npm ci
36+ - name : Run tests
37+ run : npm test
38+ test_win :
39+ name : " Windows"
40+ runs-on : windows-latest
41+ steps :
42+ - uses : actions/checkout@v2
43+ - uses : actions/setup-node@v1
44+ with :
45+ node-version : 18
46+ - uses : microsoft/playwright-github-action@v1
47+ - uses : actions/cache@v2
3248 with :
3349 path : ~/.npm
3450 key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
@@ -38,13 +54,13 @@ jobs:
3854 run : npm ci
3955 - name : Run tests
4056 run : npm test
41-
4257 tag :
4358 name : " Publishing release"
44- if : github.event_name != 'pull_request' && github.ref == 'refs/heads/main '
59+ if : github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master '
4560 needs :
46- - tests
47- runs-on : self-hosted
61+ - test_linux
62+ - test_win
63+ runs-on : ubuntu-latest
4864 steps :
4965 - name : Checkout code
5066 uses : actions/checkout@v2
5470 with :
5571 node-version : ' 18.x'
5672 registry-url : ' https://registry.npmjs.org'
57- - uses : actions/cache@v1
73+ - uses : actions/cache@v2
5874 with :
5975 path : ~/.npm
6076 key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
You can’t perform that action at this time.
0 commit comments