Skip to content

Commit fda0cdd

Browse files
committed
chore: try cypress cache key across steps
1 parent fe7a4e2 commit fda0cdd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
# ${{ runner.os }}-pnpm-store-
4646

4747
- name: Install dependencies
48-
run: pnpm install
48+
run: CYPRESS_CACHE_FOLDER=/home/runner/.cache/Cypress pnpm install
4949

5050
# ref: https://github.com/cypress-io/github-action
5151
- name: Setup cypress
@@ -58,7 +58,7 @@ jobs:
5858
# cache-key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
5959

6060
- name: Run the tests and generate coverage report
61-
run: pnpm run full-test
61+
run: CYPRESS_CACHE_FOLDER=/home/runner/.cache/Cypress pnpm run full-test
6262

6363
- name: Upload coverage to Codecov
6464
uses: codecov/codecov-action@v2

0 commit comments

Comments
 (0)