diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fa47f2..26810b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,10 @@ on: jobs: test: runs-on: ubuntu-latest + env: + # Override mise.toml so each matrix job installs and activates the Node + # version it is responsible for testing. + MISE_NODE_VERSION: ${{ matrix.node-version }} strategy: matrix: # 22.12.0 verifies package.json's stated `engines.node` floor; 24 is @@ -18,11 +22,10 @@ jobs: steps: - uses: actions/checkout@v7 - - name: Set up Node - uses: actions/setup-node@v7 + - name: Set up toolchain + uses: jdx/mise-action@v4 with: - node-version: ${{ matrix.node-version }} - cache: npm + cache_key: "{{default}}-node-${{ matrix.node-version }}" - name: Install dependencies run: npm ci