Skip to content

Merge pull request #1184 from hacspec/fix-1070 #3626

Merge pull request #1184 from hacspec/fix-1070

Merge pull request #1184 from hacspec/fix-1070 #3626

Workflow file for this run

name: Ensure formatting
on:
pull_request:
merge_group:
workflow_dispatch:
push:
branches: [main]
jobs:
ocamlformat:
name: ocamlformat
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- name: Run OCaml formatter
run: |
nix shell ..#ocamlformat -c \
ocamlformat --check $(find . -name '*.ml')
working-directory: engine
rustfmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- name: Run Rust formatter
run: |
nix shell .#rustfmt -c \
rustfmt --check $(find . -name '*.rs')