diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8fcc0b65..6f55294f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,23 @@ name: ci on: [push] jobs: + ocamlformat: + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup OCaml + uses: ocaml/setup-ocaml@v2 + with: + ocaml-compiler: ${{ matrix.ocaml-compiler }} + - name: Install dependencies + run: | + sudo apt-get update + opam depext --install --yes dune odoc camlp-streams + opam install --yes ocaml-format=0.26.2 + - name: Run format check + run: dune fmt --preview + install-ubuntu: runs-on: ubuntu-22.04 strategy: