-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 853 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
- pull_request
- push
jobs:
build:
name: Build
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
ocaml-compiler:
- 4.12.x
- 4.13.x
- 4.14.x
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: ${{ matrix.os != 'macos-latest' }}
opam-depext-flags: --with-test
- name: Install opam packages
run: opam install . --deps-only --with-test
- name: Build otfed
run: opam exec -- dune build
- name: Run unit tests
run: opam exec -- dune runtest