File tree 1 file changed +19
-14
lines changed
1 file changed +19
-14
lines changed Original file line number Diff line number Diff line change 1
- name : Main workflow
1
+ name : Builds, tests & co
2
2
3
3
on :
4
4
- pull_request
5
5
- push
6
6
- workflow_dispatch
7
7
8
+ permissions : read-all
9
+
8
10
jobs :
9
11
build :
10
12
strategy :
11
13
fail-fast : false
12
14
matrix :
13
- include :
14
- - os : ubuntu-latest
15
- ocaml-compiler : 5.2.0
16
- - os : macos-latest
17
- ocaml-compiler : 5.2.0
15
+ os :
16
+ - ubuntu-latest
17
+ - macos-latest
18
+ - windows-latest
18
19
19
20
runs-on : ${{ matrix.os }}
20
21
21
22
steps :
22
- - name : Checkout code
23
+ - name : Checkout tree
23
24
uses : actions/checkout@v4
24
25
25
- - name : Use OCaml ${{ matrix.ocaml-compiler }}
26
- uses : ocaml/setup-ocaml@v2
26
+ - name : Set-up OCaml
27
+ uses : ocaml/setup-ocaml@v3
27
28
with :
28
- ocaml-compiler : ${{ matrix.ocaml-compiler }}
29
+ ocaml-compiler : 5
29
30
30
- - name : Install system dependencies
31
+ - name : Install OS dependencies
31
32
run : opam install --depext-only .
32
33
33
- - name : Install OPAM dependencies
34
- run : opam install -t --deps-only .
34
+ - name : Install OCaml dependencies
35
+ run : opam install . --deps-only --with-test
36
+
37
+ - name : Build project
38
+ run : opam exec -- dune build
35
39
36
- - run : opam exec -- make
40
+ - name : Run tests
41
+ run : opam exec -- dune runtest
37
42
# vim: filetype=yaml
You can’t perform that action at this time.
0 commit comments