-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (40 loc) · 1.26 KB
/
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
43
44
45
46
47
48
49
50
51
52
name: ci
on:
- pull_request
- push
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- 5.1.x
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
opam-repositories: |
default: https://github.com/ocaml/opam-repository.git
mbarbin: https://github.com/mbarbin/opam-repository.git
# janestreet-bleeding: https://ocaml.janestreet.com/opam-repository
# janestreet-bleeding-external: https://github.com/janestreet/opam-repository.git#external-packages
- name: Install dependencies
run: opam install . --deps-only --with-doc --with-test
- name: Build
run: opam exec -- dune build @all @lint
- name: Run tests
run: opam exec -- dune runtest
- name: Check for uncommitted changes
run: git diff --exit-code
- name: Lint opam
uses: ocaml/setup-ocaml/lint-opam@v2
- name: Lint fmt
uses: ocaml/setup-ocaml/lint-fmt@v2
- name: Lint doc
uses: ocaml/setup-ocaml/lint-doc@v2