Skip to content

Commit

Permalink
fix(ci): cypress cache folder
Browse files Browse the repository at this point in the history
  • Loading branch information
coldlink committed Feb 3, 2025
1 parent 14d5e23 commit 1b6605f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cypress-ete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ jobs:
run: echo "PNPM_STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Get cypress cache directory path
id: cypress-cache-dir
run: echo "CYPRESS_BIN_PATH=$(pnpm dlx cypress cache path)" >> $GITHUB_OUTPUT
run: echo "CYPRESS_CACHE_FOLDER=$(pnpm dlx cypress cache path)" >> $GITHUB_OUTPUT
- name: Cache pnpm modules and cypress binary
uses: actions/cache@v4
id: pnpm-cache
with:
path: |
${{ steps.pnpm-cache-dir.outputs.PNPM_STORE_PATH }}
${{ steps.cypress-cache-dir.outputs.CYPRESS_BIN_PATH }}
${{ steps.cypress-cache-dir.outputs.CYPRESS_CACHE_FOLDER }}
key: ${{ runner.os }}-pnpm-cypress-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-cypress-
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cypress-mocked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ jobs:
run: echo "PNPM_STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Get cypress cache directory path
id: cypress-cache-dir
run: echo "CYPRESS_BIN_PATH=$(pnpm dlx cypress cache path)" >> $GITHUB_OUTPUT
run: echo "CYPRESS_CACHE_FOLDER=$(pnpm dlx cypress cache path)" >> $GITHUB_OUTPUT
- name: Cache pnpm modules and cypress binary
uses: actions/cache@v4
id: pnpm-cache
with:
path: |
${{ steps.pnpm-cache-dir.outputs.PNPM_STORE_PATH }}
${{ steps.cypress-cache-dir.outputs.CYPRESS_BIN_PATH }}
${{ steps.cypress-cache-dir.outputs.CYPRESS_CACHE_FOLDER }}
key: ${{ runner.os }}-pnpm-cypress-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-cypress-
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
run: echo "PNPM_STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Get cypress cache directory path
id: cypress-cache-dir
run: echo "CYPRESS_BIN_PATH=$(pnpm dlx cypress cache path)" >> $GITHUB_OUTPUT
run: echo "CYPRESS_CACHE_FOLDER=$(pnpm dlx cypress cache path)" >> $GITHUB_OUTPUT
- name: Cache pnpm modules and cypress binary
uses: actions/cache@v4
id: pnpm-cache
with:
path: |
${{ steps.pnpm-cache-dir.outputs.PNPM_STORE_PATH }}
${{ steps.cypress-cache-dir.outputs.CYPRESS_BIN_PATH }}
${{ steps.cypress-cache-dir.outputs.CYPRESS_CACHE_FOLDER }}
key: ${{ runner.os }}-pnpm-cypress-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-cypress-
Expand Down

0 comments on commit 1b6605f

Please sign in to comment.