Skip to content

[SKO-2340] Trent / Add GitHub action for building/testing #9

[SKO-2340] Trent / Add GitHub action for building/testing

[SKO-2340] Trent / Add GitHub action for building/testing #9

Workflow file for this run

name: Run tests
on:
pull_request:
permissions: read-all
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
ocaml-compiler:
- "4.14.1"
include:
- ocaml-compiler: "5.1.1"
os: macos-latest
- ocaml-compiler: "5.1.1"
os: ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
- run: opam install . --deps-only --with-test
- run: opam exec -- dune build
- run: opam exec -- dune runtest