File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 11
11
tests :
12
12
name : Unit tests
13
13
runs-on : ubuntu-latest
14
+ strategy :
15
+ matrix :
16
+ node-version : [14]
14
17
15
18
steps :
16
19
- name : Checkout
@@ -19,18 +22,21 @@ jobs:
19
22
uses : actions/cache@v2
20
23
with :
21
24
path : ' **/node_modules'
22
- key : ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
25
+ key : ${{ runner.os }}-${{ matrix.node-version }}- modules-${{ hashFiles('**/yarn.lock') }}
23
26
- name : Setup Node.js
24
27
uses : actions/setup-node@v1
25
28
with :
26
- node-version : 14
29
+ node-version : ${{ matrix.node-version }}
27
30
- name : Install dependencies
28
31
run : yarn install --frozen-lockfile --non-interactive
29
32
- name : Unit tests
30
33
run : yarn test -- --ci
31
34
lint :
32
35
name : Lint
33
36
runs-on : ubuntu-latest
37
+ strategy :
38
+ matrix :
39
+ node-version : [14]
34
40
35
41
steps :
36
42
- name : Checkout
@@ -39,11 +45,11 @@ jobs:
39
45
uses : actions/cache@v2
40
46
with :
41
47
path : ' **/node_modules'
42
- key : ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
48
+ key : ${{ runner.os }}-${{ matrix.node-version }}- modules-${{ hashFiles('**/yarn.lock') }}
43
49
- name : Setup Node.js
44
50
uses : actions/setup-node@v1
45
51
with :
46
- node-version : 14
52
+ node-version : ${{ matrix.node-version }}
47
53
- name : Install dependencies
48
54
run : yarn install --frozen-lockfile --non-interactive
49
55
- name : Lint
52
58
name : Test build website
53
59
if : ${{ github.event.issue.pull_request }}
54
60
runs-on : ubuntu-latest
61
+ strategy :
62
+ matrix :
63
+ node-version : [14]
55
64
56
65
steps :
57
66
- name : Checkout
@@ -60,11 +69,11 @@ jobs:
60
69
uses : actions/cache@v2
61
70
with :
62
71
path : ' **/node_modules'
63
- key : ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
72
+ key : ${{ runner.os }}-${{ matrix.node-version }}- modules-${{ hashFiles('**/yarn.lock') }}
64
73
- name : Setup Node.js
65
74
uses : actions/setup-node@v1
66
75
with :
67
- node-version : 14
76
+ node-version : ${{ matrix.node-version }}
68
77
- name : Install dependencies
69
78
run : yarn install --frozen-lockfile --non-interactive
70
79
- name : Build website
You can’t perform that action at this time.
0 commit comments