Skip to content

Commit eff1fa8

Browse files
committed
chore: gh workflows
1 parent db48724 commit eff1fa8

File tree

2 files changed

+495
-265
lines changed

2 files changed

+495
-265
lines changed

.github/workflows/ci.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node-version: [18.x, 20.x]
15+
fail-fast: false
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
cache: 'npm'
24+
25+
- name: Install Dependencies
26+
run: npm ci
27+
28+
# - name: Lint
29+
# if: matrix.node-version == '20.x'
30+
# # only run on latest node version, no reason to run on all
31+
# run: |
32+
# npm run lint
33+
34+
- name: Test NodeJS
35+
run: npm run test
36+
timeout-minutes: 5
37+
38+
39+

0 commit comments

Comments
 (0)