From 2c76eb597ac9617453f98dba94a9401af2b2fc5e Mon Sep 17 00:00:00 2001 From: Antoine Pouille Date: Wed, 25 Sep 2024 17:00:00 +0200 Subject: [PATCH] Add ocamlformat to CI --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8fcc0b65..199d6d90a 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: 4.14.x + - 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: