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
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||||
- name: Check rustfmt
|
- name: Check rustfmt
|
||||||
run: nix develop --command check-rustfmt
|
run: nix develop --command check-rustfmt
|
||||||
|
- name: Check Clippy
|
||||||
|
run: nix develop --command check-clippy
|
||||||
- name: Check Spelling
|
- name: Check Spelling
|
||||||
run: nix develop --command check-spelling
|
run: nix develop --command check-spelling
|
||||||
- name: Check nixpkgs-fmt formatting
|
- name: Check nixpkgs-fmt formatting
|
||||||
|
|
|
@ -144,6 +144,7 @@
|
||||||
check.check-nixpkgs-fmt
|
check.check-nixpkgs-fmt
|
||||||
check.check-editorconfig
|
check.check-editorconfig
|
||||||
check.check-semver
|
check.check-semver
|
||||||
|
check.check-clippy
|
||||||
]
|
]
|
||||||
++ lib.optionals (pkgs.stdenv.isDarwin) (with pkgs; [
|
++ lib.optionals (pkgs.stdenv.isDarwin) (with pkgs; [
|
||||||
libiconv
|
libiconv
|
||||||
|
|
|
@ -50,4 +50,13 @@ in
|
||||||
cargo-semver-checks semver-checks check-release
|
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