@@ -20,38 +20,34 @@ jobs:
20
20
os : [ubuntu-22.04]
21
21
runs-on : ${{ matrix.os }}
22
22
steps :
23
- - uses : actions/checkout@v2
24
- - uses : actions/setup-node@v1
23
+ - uses : actions/checkout@v4
24
+ - uses : actions/setup-node@v3
25
25
with :
26
26
node-version : 18
27
+ cache : ' npm'
27
28
- uses : microsoft/playwright-github-action@v1
28
- - uses : actions/cache@v3
29
- with :
30
- path : ~/.npm
31
- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
32
- restore-keys : |
33
- ${{ runner.os }}-node-
34
29
- name : Install dependencies
35
- run : npm install
30
+ run : |
31
+
32
+ npm install
33
+ npm install -g @web/test-runner
36
34
- name : Run tests
37
35
run : npm test
38
36
test_win :
39
37
name : " Windows"
40
38
runs-on : windows-latest
41
39
steps :
42
- - uses : actions/checkout@v2
43
- - uses : actions/setup-node@v1
40
+ - uses : actions/checkout@v4
41
+ - uses : actions/setup-node@v3
44
42
with :
45
43
node-version : 18
44
+ cache : ' npm'
46
45
- 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
46
- name : Install dependencies
54
- run : npm install
47
+ run : |
48
+
49
+ npm install
50
+ npm install -g @web/test-runner
55
51
- name : Run tests
56
52
run : npm test
57
53
tag :
@@ -63,19 +59,14 @@ jobs:
63
59
runs-on : ubuntu-latest
64
60
steps :
65
61
- name : Checkout code
66
- uses : actions/checkout@v2
62
+ uses : actions/checkout@v4
67
63
with :
68
64
fetch-depth : 0
69
- - uses : actions/setup-node@v2
65
+ - uses : actions/setup-node@v3
70
66
with :
71
- node-version : ' 18.x '
67
+ node-version : ' 18'
72
68
registry-url : ' https://registry.npmjs.org'
73
- - uses : actions/cache@v3
74
- with :
75
- path : ~/.npm
76
- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
77
- restore-keys : |
78
- ${{ runner.os }}-node-
69
+ cache : ' npm'
79
70
- run : npm install
80
71
- name : Read version from package.json
81
72
uses : culshaw/read-package-node-version-actions@v1
0 commit comments