Skip to content

Commit 3266651

Browse files
Add CI for builds and tests (#25)
1 parent a412b21 commit 3266651

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/node.js.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Credits to https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
2+
# for the code.
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches:
9+
- main
10+
pull_request:
11+
branches:
12+
- main
13+
14+
jobs:
15+
build:
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Use Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: '20.x'
25+
- run: npm ci
26+
- run: npm run build --if-present
27+
- run: npm test

0 commit comments

Comments
 (0)