Skip to content

Commit

Permalink
[CI] Run shellcheck on custom lint file
Browse files Browse the repository at this point in the history
  • Loading branch information
GMartinez-Sisti committed Dec 8, 2023
1 parent ec52ff4 commit 9c361ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/linters/ct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ excluded-charts:
# If not running on GCE, will error: "Failed to get GCE config"
- prometheus-to-sd
additional-commands:
- sh -c "if [ -f '{{ .Path }}/ci/lint.sh' ]; then exec bash '{{ .Path }}/ci/lint.sh'; fi"
- |
sh -ec "if [ -f '{{ .Path }}/ci/lint.sh' ]; then
shellcheck '{{ .Path }}/ci/lint.sh'
exec bash '{{ .Path }}/ci/lint.sh'
fi"
# - helm unittest --helm3 --strict --file unittests/*.yaml --file 'unittests/**/*.yaml' {{ .Path }}

0 comments on commit 9c361ef

Please sign in to comment.