diff --git a/README.md b/README.md index d4a6474f..d46bd045 100644 --- a/README.md +++ b/README.md @@ -475,6 +475,7 @@ use nix - [actionlint](https://github.com/rhysd/actionlint) - [action-validator](https://github.com/mpalmer/action-validator) +- [chart-testing](https://github.com/helm/chart-testing) - [check-added-large-files](https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/check_added_large_files.py) - [check-case-conflicts](https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/check_case_conflict.py) - [check-executables-have-shebangs](https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/check_executables_have_shebangs.py) diff --git a/modules/hooks.nix b/modules/hooks.nix index 6c0425c1..79586517 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -2311,6 +2311,15 @@ in files = "\\.rs$"; pass_filenames = false; }; + chart-testing = + { + name = "chart-testing"; + description = "CLI tool for linting and testing Helm charts"; + files = "^charts/"; + package = tools.chart-testing; + entry = "${hooks.chart-testing.package}/bin/ct lint --all --skip-helm-dependencies"; + pass_filenames = false; + }; checkmake = { name = "checkmake"; description = "Experimental linter/analyzer for Makefiles"; diff --git a/nix/tools.nix b/nix/tools.nix index 0e76215a..3b94a9eb 100644 --- a/nix/tools.nix +++ b/nix/tools.nix @@ -11,6 +11,7 @@ , cabal2nix , callPackage , cargo +, chart-testing , checkmake , circleci-cli , llvmPackages_latest @@ -121,6 +122,7 @@ in cabal-fmt cabal-gild cargo + chart-testing checkmake circleci-cli clippy