@@ -35,33 +35,27 @@ jobs:
3535 name : Build ESM
3636 needs : build
3737 runs-on : ubuntu-latest
38- strategy :
39- matrix :
40- node : [ 18 ]
4138 steps :
4239 - uses : actions/setup-node@v4
4340 with :
44- node-version : ${{ matrix.node }}
41+ node-version : 18
4542 - uses : actions/cache/restore@v3
4643 with :
4744 path : ./
48- key : web3-${{ matrix.node }} -${{github.event.pull_request.base.sha}}
45+ key : web3-18 -${{github.event.pull_request.base.sha}}
4946 - run : yarn build:esm
5047 build-types :
5148 name : Build Types
5249 needs : build
5350 runs-on : ubuntu-latest
54- strategy :
55- matrix :
56- node : [ 18 ]
5751 steps :
5852 - uses : actions/setup-node@v4
5953 with :
60- node-version : ${{ matrix.node }}
54+ node-version : 18
6155 - uses : actions/cache/restore@v3
6256 with :
6357 path : ./
64- key : web3-${{ matrix.node }} -${{github.event.pull_request.base.sha}}
58+ key : web3-18 -${{github.event.pull_request.base.sha}}
6559 - run : yarn build:types
6660 lint :
6761 name : Lint
@@ -144,21 +138,15 @@ jobs:
144138 env :
145139 INFURA_GOERLI_HTTP : ${{ secrets.INFURA_GOERLI_HTTP }}
146140 INFURA_GOERLI_WS : ${{ secrets.INFURA_GOERLI_WS }}
147- strategy :
148- fail-fast : false
149- matrix :
150- node : [18]
151- backend : ['ganache']
152- mode : ['http']
153141 steps :
154142 - uses : actions/setup-node@v4
155143 with :
156- node-version : ${{ matrix.node }}
144+ node-version : 18
157145 - uses : actions/cache/restore@v3
158146 with :
159147 path : ./
160- key : web3-${{ matrix.node }} -${{github.event.pull_request.base.sha}}
161- - run : yarn test:e2e:${{ matrix.backend }}:${{ matrix.mode }}
148+ key : web3-18 -${{github.event.pull_request.base.sha}}
149+ - run : yarn test:e2e:ganache:http
162150 shell : bash
163151
164152 e2e-ipc :
@@ -171,18 +159,16 @@ jobs:
171159 strategy :
172160 fail-fast : false
173161 matrix :
174- node : [ 18 ]
175- backend : [ 'geth' ]
176162 mode : [ 'ipc', 'ws', 'http' ]
177163 steps :
178164 - uses : actions/setup-node@v4
179165 with :
180- node-version : ${{ matrix.node }}
166+ node-version : 18
181167 - uses : actions/cache/restore@v3
182168 with :
183169 path : ./
184- key : web3-${{ matrix.node }} -${{github.event.pull_request.base.sha}}
185- - run : yarn test:e2e:${{ matrix.backend }} :${{ matrix.mode }}
170+ key : web3-18 -${{github.event.pull_request.base.sha}}
171+ - run : yarn test:e2e:geth :${{ matrix.mode }}
186172 shell : bash
187173
188174 e2e :
@@ -192,18 +178,17 @@ jobs:
192178 strategy :
193179 fail-fast : false
194180 matrix :
195- node : [18]
196181 browser : ['electron', 'chrome', 'firefox']
197182 steps :
198183 - uses : actions/setup-node@v4
199184 with :
200- node-version : ${{ matrix.node }}
185+ node-version : 18
201186 - uses : browser-actions/setup-firefox@latest
202187 if : matrix.browser == 'firefox'
203188 - uses : actions/cache/restore@v3
204189 with :
205190 path : ./
206- key : web3-${{ matrix.node }} -${{github.event.pull_request.base.sha}}
191+ key : web3-18 -${{github.event.pull_request.base.sha}}
207192 - run : npm install --no-package-lock --no-save --force cypress
208193 - run : npx ts-node scripts/init.ts
209194 - name : Cypress run
@@ -217,34 +202,28 @@ jobs:
217202 name : Build Docs
218203 needs : build
219204 runs-on : ubuntu-latest
220- strategy :
221- matrix :
222- node : [ 18 ]
223205 steps :
224206 - uses : actions/setup-node@v4
225207 with :
226- node-version : ${{ matrix.node }}
208+ node-version : 18
227209 - uses : actions/cache/restore@v3
228210 with :
229211 path : ./
230- key : web3-${{ matrix.node }} -${{github.event.pull_request.base.sha}}
212+ key : web3-18 -${{github.event.pull_request.base.sha}}
231213 - run : yarn build:docs
232214
233215 benchmark :
234216 name : Benchmark Tests
235217 needs : build
236218 runs-on : ubuntu-latest
237- strategy :
238- matrix :
239- node : [ 18 ]
240219 steps :
241220 - uses : actions/setup-node@v4
242221 with :
243- node-version : ${{ matrix.node }}
222+ node-version : 18
244223 - uses : actions/cache/restore@v3
245224 with :
246225 path : ./
247- key : web3-${{ matrix.node }} -${{github.event.pull_request.base.sha}}
226+ key : web3-18 -${{github.event.pull_request.base.sha}}
248227 # @octokit/core not supported on node 16, so I can't add it to the package.json
249228 - run : npm install --no-package-lock --no-save --force @octokit/core
250229 - name : Restore main branch benchmark data
0 commit comments