mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
28 lines
564 B
YAML
28 lines
564 B
YAML
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
|
|
|