14
14
strategy :
15
15
fail-fast : false
16
16
matrix :
17
- node-version : [6.x, 8.x, 10.x, 12.x, 14.x, 15.x]
17
+ node-version : [6.x, 8.x, 10.x, 12.x, 14.x, 15.x, 16.x, 17.x ]
18
18
html-plugin-version : [3, 4, 5]
19
19
webpack-version : [4, 5]
20
20
exclude :
33
33
webpack-version : 5
34
34
- node-version : 8.x
35
35
html-plugin-version : 5
36
+ - node-version : 10.x
37
+ html-plugin-version : 5
36
38
include :
37
39
- node-version : 10.x
38
40
install-puppeteer : true
@@ -45,23 +47,14 @@ jobs:
45
47
runs-on : ubuntu-latest
46
48
47
49
steps :
48
- - uses : actions/checkout@v2
50
+ - uses : actions/checkout@v3
49
51
with :
50
52
fetch-depth : 0
51
- - name : Get yarn cache directory path
52
- id : yarn-cache-dir-path
53
- run : echo "::set-output name=dir::$(yarn cache dir)"
54
- - uses : actions/cache@v2
55
- id : yarn-cache
56
- with :
57
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
58
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
59
- restore-keys : |
60
- ${{ runner.os }}-yarn-
61
53
- name : Use Node.js ${{ matrix.node-version }}
62
- uses : actions/setup-node@v2
54
+ uses : actions/setup-node@v3
63
55
with :
64
56
node-version : ${{ matrix.node-version }}
57
+ cache : yarn
65
58
- name : install with html-webpack-plugin v${{matrix.html-plugin-version }} and webpack v${{ matrix.webpack-version }}
66
59
run : |
67
60
yarn
@@ -86,20 +79,11 @@ jobs:
86
79
runs-on : ${{ matrix.os }}
87
80
88
81
steps :
89
- - uses : actions/checkout@v2
90
- - name : Get yarn cache directory path
91
- id : yarn-cache-dir-path
92
- run : echo "::set-output name=dir::$(yarn cache dir)"
93
- - uses : actions/cache@v2
94
- id : yarn-cache
82
+ - uses : actions/checkout@v3
83
+ - uses : actions/setup-node@v3
95
84
with :
96
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
97
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
98
- restore-keys : |
99
- ${{ runner.os }}-yarn-
100
-
101
- with :
102
- node-version : 14.x
85
+ node-version : ' lts/*'
86
+ cache : yarn
103
87
- run : yarn
104
88
- name : install puppeteer
105
89
run : |
@@ -124,9 +108,9 @@ jobs:
124
108
key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
125
109
restore-keys : |
126
110
${{ runner.os }}-yarn-
127
- - uses : actions/setup-node@v2.1.5
111
+ - uses : actions/setup-node@v3
128
112
with :
129
- node-version : 14.x
113
+ node-version : ' lts/* '
130
114
- run : yarn
131
115
- run : yarn lint
132
116
@@ -136,22 +120,13 @@ jobs:
136
120
needs : [lint, test-node, test-os]
137
121
runs-on : ubuntu-latest
138
122
steps :
139
- - uses : actions/checkout@v2
123
+ - uses : actions/checkout@v3
140
124
with :
141
125
fetch-depth : 0
142
- - name : Get yarn cache directory path
143
- id : yarn-cache-dir-path
144
- run : echo "::set-output name=dir::$(yarn cache dir)"
145
- - uses : actions/cache@v2
146
- id : yarn-cache
147
- with :
148
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
149
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
150
- restore-keys : |
151
- ${{ runner.os }}-yarn-
152
- - uses : actions/setup-node@v2
126
+ - uses : actions/setup-node@v3
153
127
with :
154
- node-version : 14.x
128
+ node-version : ' lts/*'
129
+ cache : yarn
155
130
- name : install
156
131
run : yarn
157
132
- run : npx semantic-release@17
0 commit comments