Skip to content

Commit

Permalink
Add lint-fmt job to GitHub Actions workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <sora@morimoto.io>
  • Loading branch information
smorimoto committed Oct 3, 2021
1 parent 9fc5b51 commit 9dbafa6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,25 @@ jobs:
with:
name: sesterl-${{ matrix.os }}
path: sesterl

lint-fmt:
strategy:
matrix:
ocaml-compiler:
- 4.13.x

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: true

- run: opam depext ocamlformat=$(awk -F = 'NR==1 {print $2}' .ocamlformat) --install

- run: opam exec -- dune build @fmt

0 comments on commit 9dbafa6

Please sign in to comment.