Skip to content

Add ci to the ci workflows #120

Add ci to the ci workflows

Add ci to the ci workflows #120

Workflow file for this run

name: Builds, tests & co
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "dev", "ci" ]
pull_request:
branches: [ "dev", "ci" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions: read-all
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-compiler:
- "5.1"
runs-on: ${{ matrix.os }}
steps:
- 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