Update CI related stuff
This commit is contained in:
11
scripts/lint.sh
Executable file
11
scripts/lint.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CHANGED_CHARTS=$(ct list-changed)
|
||||
CURRENT_DIR=$(pwd)
|
||||
|
||||
for CHART in $CHANGED_CHARTS; do
|
||||
cd "${CHART}"
|
||||
helm dependency update
|
||||
ct lint --target-branch main --validate-maintainers=false
|
||||
cd "${CURRENT_DIR}"
|
||||
done
|
16
scripts/test.sh
Executable file
16
scripts/test.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CHANGED_CHARTS=$(ct list-changed)
|
||||
CURRENT_DIR=$(pwd)
|
||||
|
||||
for CHART in $CHANGED_CHARTS; do
|
||||
cd "${CHART}"
|
||||
helm dependency update
|
||||
if [[ "$(helm show chart . | yq '.annotations.skip_tests')" != "true" ]]; then
|
||||
ct install --target-branch main
|
||||
ct install --target-branch main --upgrade
|
||||
else
|
||||
echo "skipping chart because of the skip_test annotation"
|
||||
fi
|
||||
cd "${CURRENT_DIR}"
|
||||
done
|
Reference in New Issue
Block a user