Skip to content

Commit

Permalink
chore: enable cache on CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Aviortheking authored Aug 30, 2024
1 parent 4364da4 commit f262189
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -26,6 +27,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm ci
Expand All @@ -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
Expand Down

0 comments on commit f262189

Please sign in to comment.