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 5ef613f commit af26344
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,27 @@
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
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:
needs: ocamlformat
runs-on: ubuntu-22.04
strategy:
fail-fast: false
Expand Down Expand Up @@ -45,6 +65,7 @@ jobs:
_build/default/_doc/_html/kappa-library
python:
needs: ocamlformat
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand Down Expand Up @@ -73,6 +94,7 @@ jobs:
run: opam exec -- nosetests -v tests/kappy

js:
needs: ocamlformat
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand Down Expand Up @@ -108,6 +130,7 @@ jobs:
Kappapp.tar.gz
macos:
needs: ocamlformat
runs-on: macos-13
steps:
- name: Checkout
Expand Down Expand Up @@ -139,6 +162,7 @@ jobs:
Kappapp.app.zip
windows:
needs: ocamlformat
runs-on: windows-2022
steps:
- name: Checkout
Expand Down

0 comments on commit af26344

Please sign in to comment.