chore: CI

This commit is contained in:
Simon Cruanes 2025-11-25 20:12:06 -05:00
parent 7c8adbd9fc
commit 02c4d51fd0
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
2 changed files with 29 additions and 1 deletions

28
.github/workflows/format.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: format
on:
push:
branches:
- main
pull_request:
jobs:
format:
name: format
strategy:
matrix:
ocaml-compiler:
- '5.3'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@main
- name: Use OCaml ${{ matrix.ocaml-compiler }}
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: ${{ matrix.ocaml-compiler }}
dune-cache: true
allow-prerelease-opam: true
- run: opam install ocamlformat.0.27.0
- run: opam exec -- make format-check

View file

@ -19,7 +19,7 @@ jobs:
- '4.08' - '4.08'
- '4.10' - '4.10'
- '4.14' - '4.14'
- '5.2' - '5.3'
- 'ocaml-variants.5.0.0+options,ocaml-option-bytecode-only' - 'ocaml-variants.5.0.0+options,ocaml-option-bytecode-only'
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}