mirror of
https://github.com/tcgdex/javascript-sdk.git
synced 2025-04-22 02:42:08 +00:00
chore: enable cache on CI/CD
This commit is contained in:
parent
4364da480f
commit
f2621890e1
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user