Skip to content

Commit 085cf41

Browse files
committed
Integrate Github Actions CI workflow
1 parent e0981d9 commit 085cf41

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

Diff for: .github/workflows/ci.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Tests
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
environment: ci
7+
strategy:
8+
matrix:
9+
node-version: ['20.x', '21.x']
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
# Node.js environment
14+
- name: Setup Node.js ${{ matrix.node-version }}
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: ${{ matrix.node-version }}
18+
- name: Install NPM dependencies
19+
run: npm ci
20+
- name: Run Mocha
21+
run: npm run test

Diff for: .npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.github
12
.vscode
23
eslint.config.mjs
34
test

0 commit comments

Comments
 (0)