Skip to content

Commit

Permalink
Add ocamlformat to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinepouille committed Sep 25, 2024
1 parent 2c9e133 commit 6dad6cf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit 6dad6cf

Please sign in to comment.