From f2621890e1617b38653d4edad6714cf1ae85fc09 Mon Sep 17 00:00:00 2001 From: Avior Date: Fri, 30 Aug 2024 11:05:02 +0200 Subject: [PATCH] chore: enable cache on CI/CD --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1047eab..dd00296 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,9 +14,10 @@ jobs: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: # Follow current releases https://github.com/nodejs/release#release-schedule - node-version: [18.x, 20.x, 21.x] + node-version: [18.x, 20.x, 21.x, 22.x] steps: - name: Checkout @@ -26,6 +27,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} + cache: 'npm' - name: Install dependencies run: npm ci @@ -37,7 +39,7 @@ jobs: run: npm run test - name: Upload Coverage - if: matrix.node-version == '21.x' + if: matrix.node-version == '22.x' uses: codecov/codecov-action@v3 with: # Comma-separated list of files to upload