File tree Expand file tree Collapse file tree 2 files changed +11
-15
lines changed Expand file tree Collapse file tree 2 files changed +11
-15
lines changed Original file line number Diff line number Diff line change 29
29
test-node :
30
30
name :
31
31
# prettier-ignore
32
- Test on Node.js v${{ matrix.node-version }} and eslint v${{matrix.eslint-version }}
32
+ Test on Node.js v${{ matrix.node-version }} and eslint v${{ matrix.eslint-version }}
33
33
strategy :
34
34
fail-fast : false
35
35
matrix :
@@ -40,13 +40,14 @@ jobs:
40
40
steps :
41
41
- uses : actions/checkout@v2
42
42
- name : Use Node.js ${{ matrix.node-version }}
43
- uses : actions/setup-node@v2-beta
43
+ uses : actions/setup-node@v2
44
44
with :
45
45
node-version : ${{ matrix.node-version }}
46
- - name : install with eslint v${{matrix.eslint-version }}
46
+ cache : npm
47
+ - name : install with eslint v${{ matrix.eslint-version }}
47
48
run : |
48
49
npm ci
49
- npm install -D eslint@${{matrix.eslint-version }}
50
+ npm install -D eslint@${{ matrix.eslint-version }}
50
51
- name : prettier
51
52
run : npm run prettier:check
52
53
- name : typecheck
66
67
67
68
steps :
68
69
- uses : actions/checkout@v2
69
- - uses : actions/setup-node@v2-beta
70
+ - uses : actions/setup-node@v2
70
71
with :
71
- node-version : 12.x
72
+ node-version : 14.x
73
+ cache : npm
72
74
- name : install
73
75
run : npm ci
74
76
- name : prettier
Original file line number Diff line number Diff line change @@ -14,16 +14,10 @@ jobs:
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- uses : actions/checkout@v2
17
- - uses : actions/setup-node@v2-beta
17
+ - uses : actions/setup-node@v2
18
18
with :
19
- node-version : ' 12.x'
20
-
21
- - uses : actions/cache@v2
22
- with :
23
- path : ~/.npm
24
- key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
25
- restore-keys : |
26
- ${{ runner.os }}-node-
19
+ node-version : 14.x
20
+ cache : npm
27
21
28
22
- name : install
29
23
run : npm ci
You can’t perform that action at this time.
0 commit comments