@@ -238,14 +238,6 @@ jobs:
238238 if : ${{ inputs.use-matrix == true }}
239239 runs-on : ubuntu-latest
240240 # needs: build-modern-node
241- # Use Playwright container for E2E tests, which has all dependencies and all browsers installed
242- # container: mcr.microsoft.com/playwright:v1.52.0-jammy
243- # env:
244- # # fix Firefox permission issue (Firefox is unable to launch if the $HOME folder isn't owned by the current user)
245- # HOME: /root
246- # strategy:
247- # matrix:
248- # browser: [chrome, firefox, webkit, edge]
249241 steps :
250242 - uses : actions/checkout@v4
251243
@@ -258,32 +250,34 @@ jobs:
258250 - name : Install Playwright dependencies
259251 run : npx playwright install-deps webkit
260252
261- # - name: Restore modern node_modules cache
262- # uses: actions/cache@v4
263- # with:
264- # path: |
265- # node_modules
266- # key: ${{ runner.os }}-modern-node-modules-${{ hashFiles('**/package-lock.json') }}
253+ - name : Restore modern node_modules cache
254+ id : node_modules_cache
255+ uses : actions/cache@v4
256+ with :
257+ path : |
258+ node_modules
259+ key : ${{ runner.os }}-modern-node-modules-${{ hashFiles('**/package-lock.json') }}
267260
268261 - name : Install dependencies
262+ if : steps.node_modules_cache.outputs.cache-hit != 'true'
269263 run : npm ci
270264
271265 - name : Install playwright browsers
272266 run : npx playwright install
273267
274- # - name: Download build output from artifacts
275- # id: download_build_output
276- # uses: actions/download-artifact@v4
277- # continue-on-error: true
278- # with:
279- # name: ${{ runner.os }}-modern-build-output-${{ github.sha }}
268+ - name : Download build output from artifacts
269+ id : download_build_output
270+ uses : actions/download-artifact@v4
271+ continue-on-error : true
272+ with :
273+ name : ${{ runner.os }}-modern-build-output-${{ github.sha }}
280274
281275 - name : Build package
282276 # if: steps.download_build_output.outcome != 'success'
283277 run : npm run build
284278
285279 - name : Run e2e tests
286- run : npm run task:run- e2e
280+ run : npm run e2e
287281
288282 # Run tests on single specified Node.js version
289283 run-jest-single :
0 commit comments