Skip to content

Commit a25e24e

Browse files
committed
CI: check format
1 parent 4512eb1 commit a25e24e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/format.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: format
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
format:
10+
name: format
11+
strategy:
12+
matrix:
13+
ocaml-compiler:
14+
- '5.3'
15+
runs-on: 'ubuntu-latest'
16+
steps:
17+
- uses: actions/checkout@main
18+
- name: Use OCaml ${{ matrix.ocaml-compiler }}
19+
uses: ocaml/setup-ocaml@v3
20+
with:
21+
ocaml-compiler: ${{ matrix.ocaml-compiler }}
22+
dune-cache: true
23+
allow-prerelease-opam: true
24+
25+
- run: opam install ocamlformat.0.27.0
26+
- run: opam exec -- make format-check
27+

0 commit comments

Comments
 (0)