Skip to content

Commit 1721eae

Browse files
committed
ci: add a GitHub workflow to run continuous integration tests on each pull request
1 parent 5edfa55 commit 1721eae

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Run continuous integration tests
2+
3+
on: [push, pull_request, merge_group]
4+
5+
jobs:
6+
ci:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout the repository
10+
uses: actions/checkout@v4
11+
with:
12+
fetch-depth: 0
13+
14+
- name: Set up Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
19+
- name: Install
20+
run: npm ci
21+
22+
- name: Build
23+
run: npm run build
24+
25+
- name: Run unit tests
26+
run: npm run test
27+
28+
- name: Test on generating docs
29+
run: npm run docs

.github/workflows/commitlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Run commitlint on git commit messages
22

3-
on: [push, pull_request]
3+
on: [push, pull_request, merge_group]
44

55
jobs:
66
commitlint:

0 commit comments

Comments
 (0)