Skip to content

Commit e00bda9

Browse files
authored
Merge pull request #629 from squat/introduce-chart-testing
feat: add chart-testing hook
2 parents 46d55f0 + 6119758 commit e00bda9

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ use nix
475475

476476
- [actionlint](https://github.com/rhysd/actionlint)
477477
- [action-validator](https://github.com/mpalmer/action-validator)
478+
- [chart-testing](https://github.com/helm/chart-testing)
478479
- [check-added-large-files](https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/check_added_large_files.py)
479480
- [check-case-conflicts](https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/check_case_conflict.py)
480481
- [check-executables-have-shebangs](https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/check_executables_have_shebangs.py)

modules/hooks.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2311,6 +2311,15 @@ in
23112311
files = "\\.rs$";
23122312
pass_filenames = false;
23132313
};
2314+
chart-testing =
2315+
{
2316+
name = "chart-testing";
2317+
description = "CLI tool for linting and testing Helm charts";
2318+
files = "^charts/";
2319+
package = tools.chart-testing;
2320+
entry = "${hooks.chart-testing.package}/bin/ct lint --all --skip-helm-dependencies";
2321+
pass_filenames = false;
2322+
};
23142323
checkmake = {
23152324
name = "checkmake";
23162325
description = "Experimental linter/analyzer for Makefiles";

nix/tools.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
, cabal2nix
1212
, callPackage
1313
, cargo
14+
, chart-testing
1415
, checkmake
1516
, circleci-cli
1617
, llvmPackages_latest
@@ -121,6 +122,7 @@ in
121122
cabal-fmt
122123
cabal-gild
123124
cargo
125+
chart-testing
124126
checkmake
125127
circleci-cli
126128
clippy

0 commit comments

Comments
 (0)