From 5d03f588015f36b07c81f9f5caa00f16d5bd9c21 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Thu, 26 Dec 2024 16:01:02 +0100 Subject: [PATCH] Cache playwright browsers for workflow --- .forgejo/workflows/build.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index ce43015..da64930 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -47,7 +47,8 @@ jobs: path: | ~/.cache/pip ~/node_modules - key: ${{ runner.os }}-pio + ~/.cache/ms-playwright + key: ${{ runner.os }}-pio-playwright-${{ hashFiles('**/yarn.lock') }} - uses: actions/setup-python@v5 with: python-version: '>=3.10' @@ -67,6 +68,7 @@ jobs: - name: Run vitest tests run: yarn vitest run - name: Install Playwright Browsers + if: steps.cache.outputs.cache-hit != 'true' run: npx playwright install --with-deps - name: Run Playwright tests run: npx playwright test