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 187d247
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ jobs:

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

- name: Format
run: nix develop --command 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 187d247

Please sign in to comment.