File tree 1 file changed +19
-2
lines changed
1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- uses : actions/checkout@v2
12
+
12
13
- uses : actions/setup-node@v2
13
14
with :
14
15
node-version : ' lts/*'
15
16
cache : ' npm'
16
- - run : npm install
17
+
18
+ - name : Cache Node modules
19
+ uses : actions/cache@v2
20
+ env :
21
+ cache-name : cache-node-modules
22
+ with :
23
+ # npm cache files are stored in `~/.npm` on Linux/macOS
24
+ path : ~/.npm
25
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
26
+ restore-keys : |
27
+ ${{ runner.os }}-build-${{ env.cache-name }}-
28
+ ${{ runner.os }}-build-
29
+ ${{ runner.os }}-
30
+
31
+ - name : " Install dependencies"
32
+ run : |
33
+ npm install
34
+ sudo npx playwright install-deps
17
35
18
36
- name : Lint
19
37
run : npm run lint
20
38
- name : Test Node
21
39
run : npm run test-node
22
40
- name : Test browsers
23
41
run : |
24
- sudo npx playwright install-deps
25
42
npm run test-browser
You can’t perform that action at this time.
0 commit comments