From 02c4d51fd0869ba7f132c286a22788056774eba7 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Tue, 25 Nov 2025 20:12:06 -0500 Subject: [PATCH] chore: CI --- .github/workflows/format.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/main.yml | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/format.yml diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 00000000..acbf3d16 --- /dev/null +++ b/.github/workflows/format.yml @@ -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 + diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ac0df631..5c1096c9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,7 +19,7 @@ jobs: - '4.08' - '4.10' - '4.14' - - '5.2' + - '5.3' - 'ocaml-variants.5.0.0+options,ocaml-option-bytecode-only' runs-on: ${{ matrix.os }}