Skip to content

Commit f71d0b1

Browse files
committed
fix: try cypress cache dir env
1 parent c2301cc commit f71d0b1

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.github/workflows/workflow.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ master ]
88

9+
env:
10+
CYPRESS_CACHE_FOLDER=/home/runner/.cache/Cypress
11+
912
jobs:
1013
build:
1114

@@ -28,18 +31,18 @@ jobs:
2831
node-version: ${{ matrix.node-version }}
2932
cache: 'pnpm'
3033

31-
- name: Get pnpm store directory
32-
shell: bash
33-
run: |
34-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
34+
# - name: Get pnpm store directory
35+
# shell: bash
36+
# run: |
37+
# echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
3538

36-
- name: Setup pnpm cache
37-
uses: actions/cache@v4
38-
with:
39-
path: ${{ env.STORE_PATH }}
40-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
41-
restore-keys: |
42-
${{ runner.os }}-pnpm-store-
39+
# - name: Setup pnpm cache
40+
# uses: actions/cache@v4
41+
# with:
42+
# path: ${{ env.STORE_PATH }}
43+
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
44+
# restore-keys: |
45+
# ${{ runner.os }}-pnpm-store-
4346

4447
- name: Install dependencies
4548
run: pnpm install
@@ -52,7 +55,7 @@ jobs:
5255
browser: chrome
5356
headless: true
5457
# cache-key: cypress-${{ runner.os }}-cypress-${{ hashFiles('pnpm-lock.yaml') }}
55-
cache-key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
58+
# cache-key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
5659

5760
- name: Run the tests and generate coverage report
5861
run: pnpm run full-test

0 commit comments

Comments
 (0)