Skip to content

Commit a13410c

Browse files
committed
Add CI
1 parent 4be9e36 commit a13410c

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
name: Test
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: 20
20+
cache: yarn
21+
- run: yarn install
22+
- run: yarn test

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"start": "rescript build -w",
2222
"clean": "rescript clean",
2323
"doc-install": "npm install --no-save bsdoc",
24-
"test": "rescript && bsdoc build api && bsdoc support-files",
24+
"doc": "rescript && bsdoc build api && bsdoc support-files",
25+
"test": "rescript && echo 'checking for differences in compiled output...' && git diff-index --quiet HEAD -- && echo 'success!'",
2526
"format-all": "rescript format -all",
2627
"prepublishOnly": "rescript clean && rescript build"
2728
},

0 commit comments

Comments
 (0)