-
Notifications
You must be signed in to change notification settings - Fork 18
33 lines (31 loc) · 928 Bytes
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: ci
on:
push:
branches:
- master
pull_request:
branches:
- "*"
jobs:
test-local:
runs-on: ubuntu-latest
name: Test Node.JS ${{matrix.node-version}}
strategy:
matrix:
node-version: ["18.x", "20.x", "21.x"]
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
node-version: ${{matrix.node-version}}
- uses: actions/[email protected]
with:
path: |
node_modules
key: node-modules-cache-${{matrix.node-version}}-${{runner.os}}-${{hashFiles('package-lock.json')}}-${{github.ref}}
restore-keys: |
node-modules-cache-${{matrix.node-version}}-${{runner.os}}-${{hashFiles('package-lock.json')}}-
node-modules-cache-${{matrix.node-version}}-${{runner.os}}-
- run: npm ci
- run: npm run test-local
# - run: npm run test-minio-2