Skip to content

Commit

Permalink
ci: cache cypress binary
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Dec 10, 2023
1 parent b148e5a commit 43866c9
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,22 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm

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

0 comments on commit 43866c9

Please sign in to comment.