Skip to content

Commit 442bdf5

Browse files
committed
ci: revert the changes to test.yml
1 parent 8dedf99 commit 442bdf5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
with:
110110
path: .jest-cache
111111
key: jest-unit-${{ env.GITHUB_SHA }}
112-
restore-keys: jest-unit-${{ runner.os }}-${{ matrix.node-version }}
112+
restore-keys: jest-unit-${{ hashFiles('**/yarn.lock', '**/jest.config.js') }}
113113

114114
- run: yarn cover:unit --ci --cacheDirectory .jest-cache
115115

@@ -206,7 +206,7 @@ jobs:
206206
with:
207207
path: .jest-cache
208208
key: jest-integration-${{ env.GITHUB_SHA }}
209-
restore-keys: jest-integration-${{ runner.os }}-${{ matrix.node-version }}-${{ matrix.part }}
209+
restore-keys: jest-integration-${{ hashFiles('**/yarn.lock', '**/jest.config.js') }}
210210

211211
- run: yarn cover:integration:${{ matrix.part }} --ci --cacheDirectory .jest-cache || yarn cover:integration:${{ matrix.part }} --ci --cacheDirectory .jest-cache -f
212212

0 commit comments

Comments
 (0)