Skip to content

Commit 148af1d

Browse files
committed
Add a github action to run node tests
1 parent 27b1f7d commit 148af1d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/node-ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Node - CI - Lint and Test
2+
3+
on:
4+
# Trigger the workflow on push or pull request,
5+
# but only for the main branch
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
branches:
11+
- main
12+
13+
jobs:
14+
run-tests:
15+
name: Run tests
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/setup-node@v6
19+
with:
20+
node-version: '18'
21+
- name: Check out Git repository
22+
uses: actions/checkout@v4
23+
- name: Install dependencies
24+
run: npm install
25+
- name: Run tests
26+
run: npm run test-ci

0 commit comments

Comments
 (0)