Skip to content

Commit

Permalink
feat(CI): Add format check
Browse files Browse the repository at this point in the history
  • Loading branch information
lafeychine authored and JuneRousseau committed Jan 19, 2024
1 parent ea4e6a1 commit fe0d175
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ jobs:

- name: Build
run: nix build --print-build-logs

- name: Format
run: |
nix develop
dune fmt
3 changes: 2 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
};

devShell = pkgs.mkShell {
packages = [ ocaml-lsp merlin ocamlformat ];
packages = (with defaultPackage; [ buildInputs nativeBuildInputs ])
++ [ merlin ocaml-lsp ocamlformat ];

inputsFrom = [ defaultPackage ];
};
Expand Down

0 comments on commit fe0d175

Please sign in to comment.