@@ -20,38 +20,34 @@ jobs:
2020 os : [ubuntu-22.04]
2121 runs-on : ${{ matrix.os }}
2222 steps :
23- - uses : actions/checkout@v2
24- - uses : actions/setup-node@v1
23+ - uses : actions/checkout@v4
24+ - uses : actions/setup-node@v3
2525 with :
2626 node-version : 18
27+ cache : ' npm'
2728 - 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-
3429 - name : Install dependencies
35- run : npm install
30+ run : |
31+ 32+ npm install
33+ npm install -g @web/test-runner
3634 - name : Run tests
3735 run : npm test
3836 test_win :
3937 name : " Windows"
4038 runs-on : windows-latest
4139 steps :
42- - uses : actions/checkout@v2
43- - uses : actions/setup-node@v1
40+ - uses : actions/checkout@v4
41+ - uses : actions/setup-node@v3
4442 with :
4543 node-version : 18
44+ cache : ' npm'
4645 - 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-
5346 - name : Install dependencies
54- run : npm install
47+ run : |
48+ 49+ npm install
50+ npm install -g @web/test-runner
5551 - name : Run tests
5652 run : npm test
5753 tag :
@@ -63,19 +59,14 @@ jobs:
6359 runs-on : ubuntu-latest
6460 steps :
6561 - name : Checkout code
66- uses : actions/checkout@v2
62+ uses : actions/checkout@v4
6763 with :
6864 fetch-depth : 0
69- - uses : actions/setup-node@v2
65+ - uses : actions/setup-node@v3
7066 with :
71- node-version : ' 18.x '
67+ node-version : ' 18'
7268 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'
7970 - run : npm install
8071 - name : Read version from package.json
8172 uses : culshaw/read-package-node-version-actions@v1
0 commit comments