Skip to content

Commit 06c8e86

Browse files
committed
Updated GitHub workflow
1 parent c3ac981 commit 06c8e86

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

.github/workflows/main.yml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,42 @@
1-
name: Main workflow
1+
name: Builds, tests & co
22

33
on:
44
- pull_request
55
- push
66
- workflow_dispatch
77

8+
permissions: read-all
9+
810
jobs:
911
build:
1012
strategy:
1113
fail-fast: false
1214
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
1819

1920
runs-on: ${{ matrix.os }}
2021

2122
steps:
22-
- name: Checkout code
23+
- name: Checkout tree
2324
uses: actions/checkout@v4
2425

25-
- name: Use OCaml ${{ matrix.ocaml-compiler }}
26-
uses: ocaml/setup-ocaml@v2
26+
- name: Set-up OCaml
27+
uses: ocaml/setup-ocaml@v3
2728
with:
28-
ocaml-compiler: ${{ matrix.ocaml-compiler }}
29+
ocaml-compiler: 5
2930

30-
- name: Install system dependencies
31+
- name: Install OS dependencies
3132
run: opam install --depext-only .
3233

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
3539

36-
- run: opam exec -- make
40+
- name: Run tests
41+
run: opam exec -- dune runtest
3742
# vim: filetype=yaml

0 commit comments

Comments
 (0)