Skip to content

Commit 0a856d2

Browse files
authored
Merge pull request #83 from swup/chore/ci
Add unit test CI action
2 parents 66ab6ad + 9539b97 commit 0a856d2

3 files changed

Lines changed: 2641 additions & 2366 deletions

File tree

.github/workflows/unit-tests.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Unit tests
2+
3+
on:
4+
push:
5+
branches: [main, master, next]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
run-tests:
11+
name: Run unit tests
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 5
14+
15+
steps:
16+
- name: Check out repo
17+
uses: actions/checkout@v3
18+
19+
- name: Set up node
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 18
23+
24+
- run: npm ci
25+
- run: npm run build
26+
27+
- name: Run tests
28+
run: npm run test:unit

0 commit comments

Comments
 (0)