File tree Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change 18
18
fail-fast : false
19
19
matrix :
20
20
os : [ubuntu-20.04]
21
- # os: [ubuntu-18.04, ubuntu-20.04]
22
21
runs-on : ${{ matrix.os }}
23
22
steps :
24
23
- uses : actions/checkout@v2
@@ -36,12 +35,31 @@ jobs:
36
35
run : npm ci
37
36
- name : Run tests
38
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@v3
48
+ with :
49
+ path : ~/.npm
50
+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
51
+ restore-keys : |
52
+ ${{ runner.os }}-node-
53
+ - name : Install dependencies
54
+ run : npm ci
55
+ - name : Run tests
56
+ run : npm test
39
57
tag :
40
58
name : " Publishing release"
41
59
if : github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
42
- needs :
60
+ needs :
43
61
- test_linux
44
- # - test_win
62
+ - test_win
45
63
runs-on : ubuntu-latest
46
64
steps :
47
65
- name : Checkout code
50
68
fetch-depth : 0
51
69
- uses : actions/setup-node@v2
52
70
with :
53
- node-version : ' 16 .x'
71
+ node-version : ' 18 .x'
54
72
registry-url : ' https://registry.npmjs.org'
55
73
- uses : actions/cache@v3
56
74
with :
You can’t perform that action at this time.
0 commit comments