File tree 3 files changed +18
-14
lines changed
3 files changed +18
-14
lines changed Original file line number Diff line number Diff line change 6
6
build :
7
7
runs-on : ubuntu-latest
8
8
steps :
9
- - uses : actions/checkout@v1
9
+ - uses : actions/checkout@v2
10
+ - uses : actions/setup-node@v2
11
+ with :
12
+ node-version : ' 14'
13
+ cache : ' npm'
14
+ - name : Install npm@7
15
+ run : npm i -g npm@7
10
16
- name : Install
11
- run : npm install
17
+ run : npm ci --prefer-offline
12
18
- name : Build
13
19
run : npm run build
Original file line number Diff line number Diff line change @@ -18,21 +18,13 @@ jobs:
18
18
steps :
19
19
- uses : actions/checkout@v2
20
20
- name : Setup node
21
- uses : actions/setup-node@v1
21
+ uses : actions/setup-node@v2
22
22
with :
23
23
node-version : ${{ matrix.node }}
24
+ cache : ' npm'
24
25
- name : Install npm@7
25
26
run : npm i -g npm@7
26
- - name : Cache dependencies
27
- id : cache
28
- uses : actions/cache@v2
29
- with :
30
- path : |
31
- node_modules
32
- */*/node_modules
33
- key : ${{ runner.os }}-${{ hashFiles('**/package-lock.json', './package-lock.json') }}
34
27
- name : Install packages
35
- if : steps.cache.outputs.cache-hit != 'true'
36
28
run : npm ci --prefer-offline
37
29
- name : Run integration tests
38
30
run : npm run test:integration
Original file line number Diff line number Diff line change 6
6
lint :
7
7
runs-on : ubuntu-latest
8
8
steps :
9
- - uses : actions/checkout@v1
9
+ - uses : actions/checkout@v2
10
+ - uses : actions/setup-node@v2
11
+ with :
12
+ node-version : ' 14'
13
+ cache : ' npm'
14
+ - name : Install npm@7
15
+ run : npm i -g npm@7
10
16
- name : Install
11
- run : npm install
17
+ run : npm ci --prefer-offline
12
18
- name : Alex
13
19
run : npm run alex
You can’t perform that action at this time.
0 commit comments