Skip to content

Github Action: Add Action to check code is formatted. #6

Github Action: Add Action to check code is formatted.

Github Action: Add Action to check code is formatted. #6

Workflow file for this run

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