Skip to content

Commit e9619f1

Browse files
committed
copy github workflow from syntax/
1 parent 317559e commit e9619f1

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
test-syntax:
11+
runs-on: macos-latest
12+
13+
steps:
14+
- uses: actions/[email protected]
15+
16+
- name: Cache OCaml's opam
17+
uses: actions/[email protected]
18+
with:
19+
path: ~/.opam
20+
key: macos-latest-ocaml-4.06.1
21+
22+
- name: Use OCaml
23+
uses: ocaml/setup-ocaml@v1
24+
with:
25+
ocaml-version: 4.06.1
26+
27+
- name: Use Node.js
28+
uses: actions/[email protected]
29+
with:
30+
node-version: 14.4.0
31+
32+
- name: Install depedencies
33+
working-directory: ./syntax
34+
run: npm ci
35+
36+
- name: Run tests
37+
working-directory: ./syntax
38+
run: eval $(opam env) && make roundtrip-test

0 commit comments

Comments
 (0)