Run dune tests in CI #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: OCaml CI | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup OCaml 5.1.x | |
uses: ocaml/setup-ocaml@v2 | |
with: | |
ocaml-compiler: 5.1.x | |
dune-cache: true | |
- name: Install Dependencies | |
run: | | |
opam install . --deps-only --with-test | |
- name: Run Dune tests | |
run: | | |
opam exec -- dune runtest |