Skip to content

Commit 4ff6040

Browse files
committed
rework CI a tiny bit
1 parent 0b0dd83 commit 4ff6040

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/main.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
jobs:
1010
run:
1111
name: build
12+
timeout-minutes: 15
1213
strategy:
1314
fail-fast: true
1415
matrix:
@@ -48,3 +49,23 @@ jobs:
4849
- run: opam exec -- dune runtest -j 1 -p containers # test only core on non-ubuntu platform
4950
if: ${{ matrix.os != 'ubuntu-latest' }}
5051

52+
53+
format:
54+
name: format
55+
strategy:
56+
matrix:
57+
ocaml-compiler:
58+
- '5.1'
59+
runs-on: 'ubuntu-latest'
60+
steps:
61+
- uses: actions/checkout@main
62+
- name: Use OCaml ${{ matrix.ocaml-compiler }}
63+
uses: ocaml/setup-ocaml@v2
64+
with:
65+
ocaml-compiler: ${{ matrix.ocaml-compiler }}
66+
dune-cache: true
67+
allow-prerelease-opam: true
68+
69+
- run: opam install ocamlformat.0.24.1
70+
- run: opam exec -- make format-check
71+

0 commit comments

Comments
 (0)