This commit is contained in:
Max Peintner
2025-01-08 14:57:09 +01:00
parent ef1c8013eb
commit 7703685b84

View File

@@ -68,8 +68,8 @@ jobs:
node-version: 20.x
cache: 'pnpm'
- uses: actions/cache@v4.0.2
name: Setup Cypress binary cache
- name: Setup Cypress binary cache
uses: actions/cache@v4
with:
path: ~/.cache/Cypress
key: ${{ runner.os }}-cypress-binary-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -81,13 +81,16 @@ jobs:
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Install Cypress
run: pnpm exec cypress install
# We can cache the Playwright binary independently from the pnpm cache, because we install it separately.
# After pnpm install --frozen-lockfile, we can get the version so we only have to download the binary once per version.
- run: echo "PLAYWRIGHT_VERSION=$(npx playwright --version | cut -d ' ' -f 2)" >> $GITHUB_ENV
if: ${{ startsWith(matrix.command, 'test:acceptance') }}
- uses: actions/cache@v4.0.2
name: Setup Playwright binary cache
- name: Setup Playwright binary cache
uses: actions/cache@v4
id: playwright-cache
with:
path: ~/.cache/ms-playwright