forked from lix-project/lix-installer
Enable clippy on CI (#574)
* Enable clippy on CI * Use rustc in check-clippy...
This commit is contained in:
parent
b870f97c0e
commit
72bc65b2ab
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -21,6 +21,8 @@ jobs:
|
|||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- name: Check rustfmt
|
||||
run: nix develop --command check-rustfmt
|
||||
- name: Check Clippy
|
||||
run: nix develop --command check-clippy
|
||||
- name: Check Spelling
|
||||
run: nix develop --command check-spelling
|
||||
- name: Check nixpkgs-fmt formatting
|
||||
|
|
|
@ -144,6 +144,7 @@
|
|||
check.check-nixpkgs-fmt
|
||||
check.check-editorconfig
|
||||
check.check-semver
|
||||
check.check-clippy
|
||||
]
|
||||
++ lib.optionals (pkgs.stdenv.isDarwin) (with pkgs; [
|
||||
libiconv
|
||||
|
|
|
@ -50,4 +50,13 @@ in
|
|||
cargo-semver-checks semver-checks check-release
|
||||
'';
|
||||
});
|
||||
# Clippy
|
||||
check-clippy = (writeShellApplication {
|
||||
name = "check-clippy";
|
||||
runtimeInputs = with pkgs; [ cargo clippy rustc ];
|
||||
text = ''
|
||||
cargo clippy
|
||||
'';
|
||||
});
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue