-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (34 loc) · 889 Bytes
/
Copy pathci.yml
File metadata and controls
45 lines (34 loc) · 889 Bytes
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: CI
on:
push:
branches: [main, master]
pull_request:
permissions:
contents: read
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v7
- uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: "5.2.0"
dune-cache: true
- name: Install dependencies
run: |
opam install . --deps-only --with-test
opam install ocamlformat.0.29.0
- name: Lint packages
run: opam lint ananke.opam ananke-cli.opam
- name: Check formatting
run: opam exec -- dune build @fmt
- name: Build
run: opam exec -- dune build @all
- name: Test
run: opam exec -- dune runtest
- name: Smoke demo
run: opam exec -- dune exec ananke -- doctor