Merge pull request #1746 from cryspen/rengine-monadic-phase #5535
This file contains hidden or 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: Ensure formatting | |
| on: | |
| pull_request: | |
| merge_group: | |
| workflow_dispatch: | |
| push: | |
| branches: [main] | |
| jobs: | |
| ocamlformat: | |
| name: ocamlformat | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - 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@v4 | |
| - name: Run Rust formatter | |
| run: | | |
| cargo fmt --check |