Skip to content

Commit

Permalink
ci: install cypress binary separately
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Dec 10, 2023
1 parent e2dcb43 commit b82d48e
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,29 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm

- name: Get pnpm store path
- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Get cypress cache path
working-directory: ./e2e
shell: bash
run: |
echo "PNPM_STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
echo "CYPRESS_CACHE_PATH=$(pnpm cypress cache path)" >> $GITHUB_ENV
- name: Setup pnpm cache
- name: Setup cypress cache
uses: actions/cache@v3
with:
path: |
~/.cache/Cypress
${{ env.PNPM_STORE_PATH }}
key: e2e-${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('pnpm-lock.yaml') }}
path: ${{ env.CYPRESS_CACHE_PATH }}
key: cypress-${{ runner.os }}-node-${{ matrix.node }}-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
e2e-${{ runner.os }}-node-${{ matrix.node }}-
e2e-${{ runner.os }}-
cypress-${{ runner.os }}-node-${{ matrix.node }}-
cypress-${{ runner.os }}-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install cypress binary
working-directory: ./e2e
run: pnpm cypress install

- name: Build source files
run: pnpm build
Expand Down

0 comments on commit b82d48e

Please sign in to comment.