File tree 4 files changed +38
-9
lines changed
4 files changed +38
-9
lines changed Original file line number Diff line number Diff line change 8
8
github.event_name == 'deployment_status' &&
9
9
github.event.deployment_status.state == 'success'
10
10
runs-on : ubuntu-latest
11
+ strategy :
12
+ matrix :
13
+ node-version : [16.x]
14
+
11
15
steps :
12
16
- uses : actions/checkout@v3
17
+
18
+ - name : Setup Node
19
+ uses : actions/setup-node@v3
20
+ with :
21
+ node-version : ${{ matrix.node-version }}
22
+ cache : npm
23
+
13
24
- name : Install dependencies
14
25
run : npm ci
15
26
env :
16
27
CI : true
28
+
17
29
- name : Run end-to-end tests.
18
30
run : npm run test:e2e
19
31
env :
Original file line number Diff line number Diff line change 10
10
jobs :
11
11
build :
12
12
runs-on : ubuntu-latest
13
+ strategy :
14
+ matrix :
15
+ node-version : [16.x]
13
16
14
17
steps :
15
- - uses : actions/checkout@v1
16
- - name : setup node
17
- uses : actions/setup-node@v1
18
+ - uses : actions/checkout@v3
19
+
20
+ - name : Setup Node
21
+ uses : actions/setup-node@v3
18
22
with :
19
- node-version : " 16.x"
23
+ node-version : ${{ matrix.node-version }}
24
+ cache : npm
20
25
21
26
- name : npm install, generate readme
22
27
run : |
Original file line number Diff line number Diff line change 11
11
jobs :
12
12
previewTheme :
13
13
runs-on : ubuntu-latest
14
+ strategy :
15
+ matrix :
16
+ node-version : [16.x]
14
17
name : Install & Preview
15
18
16
19
steps :
17
20
- uses : actions/checkout@v3
18
- - uses : actions/setup-node@v3
21
+
22
+ - name : Setup Node
23
+ uses : actions/setup-node@v3
19
24
with :
20
- node-version : 16
25
+ node-version : ${{ matrix.node-version }}
26
+ cache : npm
27
+
21
28
- uses : bahmutov/npm-install@v1
22
29
with :
23
30
useLockFile : false
31
+
24
32
- run : npm run preview-theme
25
33
env :
26
34
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 11
11
jobs :
12
12
build :
13
13
runs-on : ubuntu-latest
14
+ strategy :
15
+ matrix :
16
+ node-version : [16.x]
14
17
15
18
steps :
16
- - uses : actions/checkout@v2
19
+ - uses : actions/checkout@v3
17
20
18
21
- name : Setup Node
19
- uses : actions/setup-node@v1
22
+ uses : actions/setup-node@v3
20
23
with :
21
- node-version : " 16.x"
24
+ node-version : ${{ matrix.node-version }}
25
+ cache : npm
22
26
23
27
- name : Install & Test
24
28
run : |
You can’t perform that action at this time.
0 commit comments