@@ -18,11 +18,18 @@ jobs:
18
18
- uses : actions/setup-node@v2
19
19
with :
20
20
node-version : ${{ matrix.node }}
21
+ - name : Set up npm cache
22
+ uses : actions/cache@v2
23
+ with :
24
+ path : ~/.npm
25
+ key : ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
26
+ restore-keys : |
27
+ ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
28
+ ${{ runner.os }}-node-v${{ matrix.node }}-
21
29
- run : npm ci
22
30
- run : npm test
23
31
- uses : codecov/codecov-action@v1
24
- with :
25
- name : actions ${{ matrix.node }}
32
+ if : matrix.node == env.NODE
26
33
windows :
27
34
runs-on : windows-latest
28
35
steps :
39
46
- uses : actions/setup-node@v2
40
47
with :
41
48
node-version : ${{ env.NODE }}
49
+ - name : Set up npm cache
50
+ uses : actions/cache@v2
51
+ with :
52
+ path : ~/.npm
53
+ key : ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
54
+ restore-keys : |
55
+ ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
56
+ ${{ runner.os }}-node-v${{ env.NODE }}-
42
57
- run : npm ci
43
58
- run : npm run lint
44
59
docs :
48
63
- uses : actions/setup-node@v2
49
64
with :
50
65
node-version : ${{ env.NODE }}
66
+ - name : Set up npm cache
67
+ uses : actions/cache@v2
68
+ with :
69
+ path : ~/.npm
70
+ key : ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
71
+ restore-keys : |
72
+ ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
73
+ ${{ runner.os }}-node-v${{ env.NODE }}-
51
74
- run : npm ci
52
75
- run : npm run docs-test
53
76
release :
59
82
- uses : actions/setup-node@v2
60
83
with :
61
84
node-version : ${{ env.NODE }}
85
+ - name : Set up npm cache
86
+ uses : actions/cache@v2
87
+ with :
88
+ path : ~/.npm
89
+ key : ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
90
+ restore-keys : |
91
+ ${{ runner.os }}-node-v${{ env.NODE }}-${{ hashFiles('package.json') }}-${{ hashFiles('package-lock.json') }}
92
+ ${{ runner.os }}-node-v${{ env.NODE }}-
62
93
- run : npm ci
63
94
- run : npm run compile
64
95
- run : npm run build-binaries
0 commit comments