Skip to content

Modern Docker Management, Designed for Everyone

chore(tests): fix logic with e2e tests caching

Kyle Mendellf910e3989104
diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml
index 0e7ad9c4f..5c651d4f7 100644
--- a/.github/workflows/e2e-tests.yml
+++ b/.github/workflows/e2e-tests.yml
@@ -4,13 +4,13 @@ on:
push:
branches: [main]
paths-ignore:
- - '**.md'
- - '.github/**'
+ - "**.md"
+ - ".github/**"
pull_request:
branches: [main]
paths-ignore:
- - '**.md'
- - '.github/**'
+ - "**.md"
+ - ".github/**"
permissions:
contents: read
@@ -92,7 +92,7 @@ jobs:
id: playwright-cache
with:
path: ~/.cache/ms-playwright
- key: ${{ runner.os }}-playwright-${{ hashFiles('pnpm-lock.yaml') }}
+ key: ${{ runner.os }}-playwright-${{ hashFiles('tests/pnpm-lock.yaml', 'tests/package.json') }}
restore-keys: |
${{ runner.os }}-playwright-
@@ -122,8 +122,7 @@ jobs:
- name: Install Playwright Browsers
working-directory: ./tests
- if: steps.playwright-cache.outputs.cache-hit != 'true'
- run: pnpm dlx playwright install --with-deps chromium
+ run: pnpm exec playwright install --with-deps chromium
- name: Run Playwright E2E tests
run: pnpm --filter arcane-tests test