Skip to content

Commit 8114d2d

Browse files
committed
chore(workflows/tests): change cache to use "runs-on" instead of "node-version"
as mongodb cache does not change between node versions, but actual OS
1 parent a2fa28e commit 8114d2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ jobs:
3737
uses: actions/cache@v4
3838
with:
3939
path: ~/.cache/mongodb-binaries
40-
key: ${{ matrix.node-version }}-${{ hashFiles('**/globalSetup.ts') }}
40+
key: ${{ job.container.runs-on }}-${{ hashFiles('**/globalSetup.ts') }}
4141
restore-keys: |
42-
${{ matrix.node-version }}-
43-
${{ matrix.node-version }}
42+
${{ job.container.runs-on }}-
43+
${{ job.container.runs-on }}
4444
- name: Install node_modules
4545
run: yarn
4646
- name: TSCheck

0 commit comments

Comments
 (0)