mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 01:43:08 +00:00
?
This commit is contained in:
11
.github/workflows/test.yml
vendored
11
.github/workflows/test.yml
vendored
@@ -68,8 +68,8 @@ jobs:
|
|||||||
node-version: 20.x
|
node-version: 20.x
|
||||||
cache: 'pnpm'
|
cache: 'pnpm'
|
||||||
|
|
||||||
- uses: actions/cache@v4.0.2
|
- name: Setup Cypress binary cache
|
||||||
name: Setup Cypress binary cache
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/Cypress
|
path: ~/.cache/Cypress
|
||||||
key: ${{ runner.os }}-cypress-binary-${{ hashFiles('**/pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-cypress-binary-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
@@ -81,13 +81,16 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
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.
|
# 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.
|
# 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
|
- run: echo "PLAYWRIGHT_VERSION=$(npx playwright --version | cut -d ' ' -f 2)" >> $GITHUB_ENV
|
||||||
if: ${{ startsWith(matrix.command, 'test:acceptance') }}
|
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
|
id: playwright-cache
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/ms-playwright
|
path: ~/.cache/ms-playwright
|
||||||
|
|||||||
Reference in New Issue
Block a user