1414 strategy :
1515 fail-fast : false
1616 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 ]
1818 html-plugin-version : [3, 4, 5]
1919 webpack-version : [4, 5]
2020 exclude :
3333 webpack-version : 5
3434 - node-version : 8.x
3535 html-plugin-version : 5
36+ - node-version : 10.x
37+ html-plugin-version : 5
3638 include :
3739 - node-version : 10.x
3840 install-puppeteer : true
@@ -45,23 +47,14 @@ jobs:
4547 runs-on : ubuntu-latest
4648
4749 steps :
48- - uses : actions/checkout@v2
50+ - uses : actions/checkout@v3
4951 with :
5052 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-
6153 - name : Use Node.js ${{ matrix.node-version }}
62- uses : actions/setup-node@v2
54+ uses : actions/setup-node@v3
6355 with :
6456 node-version : ${{ matrix.node-version }}
57+ cache : yarn
6558 - name : install with html-webpack-plugin v${{matrix.html-plugin-version }} and webpack v${{ matrix.webpack-version }}
6659 run : |
6760 yarn
@@ -86,20 +79,11 @@ jobs:
8679 runs-on : ${{ matrix.os }}
8780
8881 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
9584 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
10387 - run : yarn
10488 - name : install puppeteer
10589 run : |
@@ -124,9 +108,9 @@ jobs:
124108 key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
125109 restore-keys : |
126110 ${{ runner.os }}-yarn-
127- - uses : actions/setup-node@v2.1.5
111+ - uses : actions/setup-node@v3
128112 with :
129- node-version : 14.x
113+ node-version : ' lts/* '
130114 - run : yarn
131115 - run : yarn lint
132116
@@ -136,22 +120,13 @@ jobs:
136120 needs : [lint, test-node, test-os]
137121 runs-on : ubuntu-latest
138122 steps :
139- - uses : actions/checkout@v2
123+ - uses : actions/checkout@v3
140124 with :
141125 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
153127 with :
154- node-version : 14.x
128+ node-version : ' lts/*'
129+ cache : yarn
155130 - name : install
156131 run : yarn
157132 - run : npx semantic-release@17
0 commit comments