Skip to content

Commit 70bdaf4

Browse files
Add CI for running tests. (#7)
Github actions workflow for running tests (only one job for now) Can also be triggered from Github Web app.
1 parent 006a405 commit 70bdaf4

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
9+
pull_request:
10+
branches:
11+
- main
12+
- dev
13+
14+
workflow_dispatch:
15+
16+
jobs:
17+
test:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Clone repo
22+
uses: actions/checkout@v4
23+
24+
- name: Install NodeJS
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 22.12.0
28+
29+
- name: Install dependencies
30+
run: npm ci
31+
32+
- name: Run test suites
33+
run: npm run test
34+
35+
- name: Print message
36+
run: echo "All tests passed. 🎉 :)"
37+
38+
- name: Print github context for demo
39+
run: echo "${{ toJson(github) }}"

0 commit comments

Comments
 (0)