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 8e3b9d2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ on:

jobs:
tests:
runs-on: ubuntu-22.04
runs-on: ${{ matrix.distro }}
strategy:
matrix:
distro: [ubuntu-22.04]
node-version: [14.x, 16.x, 18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
Expand All @@ -37,10 +38,10 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.cache/mongodb-binaries
key: ${{ matrix.node-version }}-${{ hashFiles('**/globalSetup.ts') }}
key: ${{ matrix.distro }}-${{ hashFiles('**/globalSetup.ts') }}
restore-keys: |
${{ matrix.node-version }}-
${{ matrix.node-version }}
${{ matrix.distro }}-
${{ matrix.distro }}
- name: Install node_modules
run: yarn
- name: TSCheck
Expand Down

0 comments on commit 8e3b9d2

Please sign in to comment.