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 3613cdc commit eb6e8fa
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
name: ci
on: [push]
jobs:
lint-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
opam install --yes ocamlformat=0.26.2
- name: Run format check
run: |
# needs `opam exec --` as `dune` is not in the shell PATH
opam exec -- dune fmt --preview
install-ubuntu:
runs-on: ubuntu-22.04
strategy:
Expand Down

0 comments on commit eb6e8fa

Please sign in to comment.