From 411fa27ca8fe365e4acf96aeda2908f6fcf89be0 Mon Sep 17 00:00:00 2001 From: Rasso Hilber Date: Tue, 14 Nov 2023 08:49:12 +0100 Subject: [PATCH] Attempt to fix cache usage --- .github/workflows/e2e-tests.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index c42c387..e35a315 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -24,15 +24,15 @@ jobs: ~/.cache/ms-playwright key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }} - - name: Install dependencies - run: npm ci + - run: npm ci - - name: Bundle library - run: npm run build - - - name: Install playwright browsers - run: npx playwright install --with-deps + - run: npx playwright install --with-deps if: steps.playwright-cache.outputs.cache-hit != 'true' + - run: npx playwright install-deps + if: steps.playwright-cache.outputs.cache-hit == 'true' + + - run: npm run build + - name: Run tests run: npx playwright test --config ./tests/config/playwright.config.ts