Skip to content

Commit e2a6624

Browse files
committed
ci: improve e2e tests
1 parent bf8e69b commit e2a6624

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/reusable-test.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -257,17 +257,12 @@ jobs:
257257
- name: Install Playwright dependencies
258258
run: npx playwright install-deps webkit
259259

260-
- name: Download node_modules from artifacts
261-
id: download_node_modules
262-
uses: actions/download-artifact@v4
263-
continue-on-error: true
260+
- name: Restore modern node_modules cache
261+
uses: actions/cache@v4
264262
with:
265-
name: modern-node-modules-${{ hashFiles('**/package-lock.json') }}
266-
path: node_modules
267-
268-
- name: Install dependencies
269-
if: steps.download_node_modules.outcome != 'success'
270-
run: npm ci
263+
path: |
264+
node_modules
265+
key: ${{ runner.os }}-modern-node-modules-${{ hashFiles('**/package-lock.json') }}
271266

272267
- name: Install playwright browsers
273268
run: npx playwright install

0 commit comments

Comments
 (0)