Skip to content

Commit ecca8a9

Browse files
authored
chore(ci): Drop Playwright cache. Separate deps install step (#1845)
Playwright is broken in CI. This PR is one step towards maybe fixing it
1 parent afde412 commit ecca8a9

7 files changed

Lines changed: 28 additions & 70 deletions

β€Ž.github/workflows/fragments-smoke-tests.ymlβ€Ž

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,12 @@ jobs:
3434
env:
3535
REDWOOD_DISABLE_TELEMETRY: 1
3636

37-
- name: 🎭 Cache Playwright browsers
38-
id: playwright-cache
39-
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
40-
with:
41-
path: |
42-
~/.cache/ms-playwright
43-
~/Library/Caches/ms-playwright
44-
~\AppData\Local\ms-playwright
45-
key: playwright-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
37+
- name: 🎭 Install Playwright OS dependencies
38+
if: runner.os == 'Linux'
39+
run: npx playwright install-deps chromium
4640

4741
- name: 🎭 Install playwright dependencies
48-
run: npx playwright install --with-deps chromium
42+
run: npx playwright install chromium
4943

5044
- name: Run Fragments dev smoke tests
5145
working-directory: ./tasks/smoke-tests/fragments-dev

β€Ž.github/workflows/live-smoke-tests.ymlβ€Ž

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,12 @@ jobs:
2929
REDWOOD_DISABLE_TELEMETRY: 1
3030
YARN_ENABLE_IMMUTABLE_INSTALLS: false
3131

32-
- name: 🎭 Cache Playwright browsers
33-
id: playwright-cache
34-
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
35-
with:
36-
path: |
37-
~/.cache/ms-playwright
38-
~/Library/Caches/ms-playwright
39-
~\AppData\Local\ms-playwright
40-
key: playwright-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
32+
- name: 🎭 Install Playwright OS dependencies
33+
if: runner.os == 'Linux'
34+
run: npx playwright install-deps chromium
4135

4236
- name: 🎭 Install playwright dependencies
43-
run: npx playwright install --with-deps chromium
37+
run: npx playwright install chromium
4438

4539
- name: πŸ”„ Run live smoke tests
4640
working-directory: ./tasks/smoke-tests/live

β€Ž.github/workflows/rsc-smoke-tests.ymlβ€Ž

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,12 @@ jobs:
2828
YARN_ENABLE_IMMUTABLE_INSTALLS: false
2929
GITHUB_TOKEN: ${{ github.token }}
3030

31-
- name: 🎭 Cache Playwright browsers
32-
id: playwright-cache
33-
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
34-
with:
35-
path: |
36-
~/.cache/ms-playwright
37-
~/Library/Caches/ms-playwright
38-
~\AppData\Local\ms-playwright
39-
key: playwright-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
31+
- name: 🎭 Install Playwright OS dependencies
32+
if: runner.os == 'Linux'
33+
run: npx playwright install-deps chromium
4034

4135
- name: 🎭 Install playwright dependencies
42-
run: npx playwright install --with-deps chromium
36+
run: npx playwright install chromium
4337

4438
- name: 🐘 Run RSC serve smoke tests
4539
working-directory: tasks/smoke-tests/rsc

β€Ž.github/workflows/smoke-tests-react-18-test.ymlβ€Ž

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,12 @@ jobs:
5555
REDWOOD_DISABLE_TELEMETRY: 1
5656
YARN_ENABLE_IMMUTABLE_INSTALLS: false
5757

58-
- name: 🎭 Cache Playwright browsers
59-
id: playwright-cache
60-
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
61-
with:
62-
path: |
63-
~/.cache/ms-playwright
64-
~/Library/Caches/ms-playwright
65-
~\AppData\Local\ms-playwright
66-
key: playwright-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
58+
- name: 🎭 Install Playwright OS dependencies
59+
if: runner.os == 'Linux'
60+
run: npx playwright install-deps chromium
6761

6862
- name: 🎭 Install playwright dependencies
69-
run: npx playwright install --with-deps chromium
63+
run: npx playwright install chromium
7064

7165
- name: πŸ§‘β€πŸ’» Run dev smoke tests
7266
working-directory: ./tasks/smoke-tests/dev

β€Ž.github/workflows/smoke-tests-test-esm.ymlβ€Ž

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,12 @@ jobs:
2929
REDWOOD_DISABLE_TELEMETRY: 1
3030
YARN_ENABLE_IMMUTABLE_INSTALLS: false
3131

32-
- name: 🎭 Cache Playwright browsers
33-
id: playwright-cache
34-
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
35-
with:
36-
path: |
37-
~/.cache/ms-playwright
38-
~/Library/Caches/ms-playwright
39-
~\AppData\Local\ms-playwright
40-
key: playwright-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
32+
- name: 🎭 Install Playwright OS dependencies
33+
if: runner.os == 'Linux'
34+
run: npx playwright install-deps chromium
4135

4236
- name: 🎭 Install playwright dependencies
43-
run: npx playwright install --with-deps chromium
37+
run: npx playwright install chromium
4438

4539
- name: πŸ§‘β€πŸ’» Run dev smoke tests
4640
working-directory: ./tasks/smoke-tests/dev

β€Ž.github/workflows/smoke-tests-test.ymlβ€Ž

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,12 @@ jobs:
2929
REDWOOD_DISABLE_TELEMETRY: 1
3030
YARN_ENABLE_IMMUTABLE_INSTALLS: false
3131

32-
- name: 🎭 Cache Playwright browsers
33-
id: playwright-cache
34-
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
35-
with:
36-
path: |
37-
~/.cache/ms-playwright
38-
~/Library/Caches/ms-playwright
39-
~\AppData\Local\ms-playwright
40-
key: playwright-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
32+
- name: 🎭 Install Playwright OS dependencies
33+
if: runner.os == 'Linux'
34+
run: npx playwright install-deps chromium
4135

4236
- name: 🎭 Install playwright dependencies
43-
run: npx playwright install --with-deps chromium
37+
run: npx playwright install chromium
4438

4539
- name: πŸ§‘β€πŸ’» Run dev smoke tests
4640
working-directory: ./tasks/smoke-tests/dev

β€Ž.github/workflows/ssr-smoke-tests.ymlβ€Ž

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,12 @@ jobs:
3434
env:
3535
REDWOOD_DISABLE_TELEMETRY: 1
3636

37-
- name: 🎭 Cache Playwright browsers
38-
id: playwright-cache
39-
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
40-
with:
41-
path: |
42-
~/.cache/ms-playwright
43-
~/Library/Caches/ms-playwright
44-
~\AppData\Local\ms-playwright
45-
key: playwright-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
37+
- name: 🎭 Install Playwright OS dependencies
38+
if: runner.os == 'Linux'
39+
run: npx playwright install-deps chromium
4640

4741
- name: 🎭 Install playwright dependencies
48-
run: npx playwright install --with-deps chromium
42+
run: npx playwright install chromium
4943

5044
- name: Run SSR [DEV] smoke tests
5145
working-directory: ./tasks/smoke-tests/streaming-ssr-dev

0 commit comments

Comments
Β (0)