Add a test to ensure the chart versions match (#163)
Co-authored-by: Marco Franssen <[email protected]>
This commit is contained in:
co-authored by
Marco Franssen
parent
64585ba2b5
commit
e2ec6ac47d
@@ -23,7 +23,7 @@ env:
|
|||||||
CHART_TESTING_VERSION: v3.7.1
|
CHART_TESTING_VERSION: v3.7.1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-docs:
|
checks:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -33,6 +33,22 @@ jobs:
|
|||||||
- name: Verify Docs updated
|
- name: Verify Docs updated
|
||||||
run: ./helm-docs.sh
|
run: ./helm-docs.sh
|
||||||
|
|
||||||
|
- name: Verify Spire appVersion
|
||||||
|
run: |
|
||||||
|
set +e
|
||||||
|
BASEVER=$(yq e .appVersion Chart.yaml)
|
||||||
|
for FILE in spiffe-oidc-discovery-provider spire-agent spire-server; do
|
||||||
|
VER=$(yq .appVersion charts/$FILE/Chart.yaml)
|
||||||
|
if [ "$VER" != "$BASEVER" ]; then
|
||||||
|
{
|
||||||
|
echo "## Version mismatch"
|
||||||
|
echo
|
||||||
|
echo "There is a mismatch between the chart version ($BASEVER) and subchart version ($VER). The issue may be in file $FILE. Please fix."
|
||||||
|
} >> "$GITHUB_STEP_SUMMARY"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
lint-chart:
|
lint-chart:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user