Skip to content

Build & Test

Build & Test #2

Workflow file for this run

name: Build & Test
on:
pull_request:
push:
schedule:
# Prime the caches every Monday
- cron: 0 1 * * MON
permissions: read-all
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
ocaml-compiler:
- "5.1"
allow-prerelease-opam:
- true
opam-repositories:
- |-
default: https://github.com/ocaml/opam-repository.git
runs-on: ${{ matrix.os }}
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Set-up OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
allow-prerelease-opam: ${{ matrix.allow-prerelease-opam }}
opam-repositories: ${{ matrix.opam-repositories }}
- run: opam install . --deps-only --with-test
- run: opam exec -- dune build
- run: opam exec -- dune test