Skip to content

Commit 3b29772

Browse files
lidelSgtPooki
andauthored
fix(ci): timeout and cache playwright deps (#566)
* fix(ci): cache playwright * chore: actions/cache@v4 * chore: apply suggestions from code review --------- Co-authored-by: Russell Dempsey <[email protected]>
1 parent ca1d9b1 commit 3b29772

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,16 @@ jobs:
6767
with:
6868
node-version: lts/*
6969
- uses: ipfs/aegir/actions/cache-node-modules@main
70+
- name: Cache Playwright dependencies
71+
id: playwright-cache
72+
uses: actions/cache@v4
73+
with:
74+
path: ~/.cache/ms-playwright
75+
key: playwright-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
76+
restore-keys: |
77+
playwright-${{ runner.os }}-
7078
- run: npx playwright install --with-deps
79+
timeout-minutes: 10 # should take no longer than 2min
7180
- run: npm run --if-present test:chrome
7281
- uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
7382
with:
@@ -98,7 +107,16 @@ jobs:
98107
with:
99108
node-version: lts/*
100109
- uses: ipfs/aegir/actions/cache-node-modules@main
110+
- name: Cache Playwright dependencies
111+
id: playwright-cache
112+
uses: actions/cache@v4
113+
with:
114+
path: ~/.cache/ms-playwright
115+
key: playwright-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
116+
restore-keys: |
117+
playwright-${{ runner.os }}-
101118
- run: npx playwright install --with-deps
119+
timeout-minutes: 10 # should take no longer than 2min
102120
- run: npm run --if-present test:firefox
103121
- uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0
104122
with:

0 commit comments

Comments
 (0)