Github Action: Add Action to check code is formatted. #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Code Format | |
on: | |
pull_request: | |
push: | |
permissions: read-all | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout tree | |
uses: actions/checkout@v4 | |
- name: Set-up OCaml | |
uses: ocaml/setup-ocaml@v2 | |
with: | |
ocaml-compiler: "5.1" | |
dune-cache: true | |
allow-prerelease-opam: true | |
opam-repositories: | | |
default: https://github.com/ocaml/opam-repository.git | |
- uses: ocaml/setup-ocaml/lint-fmt@v2 |