Refactoring #23
Workflow file for this run
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: | |
branches: | |
- master | |
paths: | |
- ".github/workflows/*" | |
- "ocaml/**" | |
pull_request: | |
branches: | |
- master | |
paths: | |
- ".github/workflows/*" | |
- "ocaml/**" | |
defaults: | |
run: | |
working-directory: ./ocaml | |
jobs: | |
build-test-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up OCaml | |
uses: ocaml/[email protected] | |
with: | |
ocaml-compiler: 5.1 | |
- name: Install dependencies | |
run: opam install --deps-only --locked . | |
- name: Build project | |
run: opam exec -- dune build | |
- name: Run tests | |
run: opam exec -- dune runtest | |
- name: Check formatting | |
run: opam exec -- dune fmt |