From 76414097c004cee9790d27d1da94916e5bf54641 Mon Sep 17 00:00:00 2001 From: Stephan Kulla Date: Thu, 23 Jul 2026 13:24:11 +0200 Subject: [PATCH 1/2] test(ci/cd): only install chrome --- .github/workflows/checks.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 9d5ed3c..ccf1b9a 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -28,8 +28,7 @@ jobs: steps: - uses: actions/checkout@v7 - uses: ./.github/actions/setup-bun - - name: Install Playwright Browsers - run: npx playwright install --with-deps + - run: npx playwright install chrome - run: bun test:e2e format: From c78ed23f89fb7cf23b1e63c49931dab441a06b79 Mon Sep 17 00:00:00 2001 From: Stephan Kulla Date: Thu, 23 Jul 2026 15:09:11 +0200 Subject: [PATCH 2/2] test(ci/cd): cache playwright browsers Fixes https://github.com/kulla/serlo-editor-prototype/issues/96 --- .github/workflows/checks.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index ccf1b9a..b8c9365 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -28,7 +28,15 @@ jobs: steps: - uses: actions/checkout@v7 - uses: ./.github/actions/setup-bun - - run: npx playwright install chrome + - name: Cache Playwright Browsers + id: playwright-cache + uses: actions/cache@v4 + with: + path: ~/.cache/ms-playwright + key: playwright-${{ runner.os }}-${{ hashFiles('bun.lock') }} + - name: Install Playwright Browsers + run: npx playwright install + if: steps.playwright-cache.outputs.cache-hit != 'true' - run: bun test:e2e format: