Skip to content

Commit

Permalink
chore(workflows/tests): change cache to use "runs-on" instead of "nod…
Browse files Browse the repository at this point in the history
…e-version"

as mongodb cache does not change between node versions, but actual OS
  • Loading branch information
hasezoey committed Nov 1, 2024
1 parent a2fa28e commit 8114d2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.cache/mongodb-binaries
key: ${{ matrix.node-version }}-${{ hashFiles('**/globalSetup.ts') }}
key: ${{ job.container.runs-on }}-${{ hashFiles('**/globalSetup.ts') }}
restore-keys: |
${{ matrix.node-version }}-
${{ matrix.node-version }}
${{ job.container.runs-on }}-
${{ job.container.runs-on }}
- name: Install node_modules
run: yarn
- name: TSCheck
Expand Down

0 comments on commit 8114d2d

Please sign in to comment.