-
Notifications
You must be signed in to change notification settings - Fork 8
45 lines (35 loc) · 935 Bytes
/
test.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
name: build and test
on:
- push
- pull_request
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- 4.14
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- run: sudo apt-get update
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: true
opam-depext-flags: '--with-test'
allow-prerelease-opam: true
# apt update is implicit
# pinning package implicit
# depext install implicit
- run: opam install . ocamlformat.0.26.2
- name: compile
run: opam exec -- make
- name: run test
run: opam exec -- make test
- name: check ocamlformat
run: opam exec -- make fmt