From 9ff64df8802a7175ef4fe7c6b292c5e910d3bcd7 Mon Sep 17 00:00:00 2001 From: "Florian Rusch (ZF Friedrichshafen AG)" Date: Wed, 18 Oct 2023 14:08:33 +0200 Subject: [PATCH] Add workflow step for checking chart readme changed --- .github/workflows/chart-lint-test.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/chart-lint-test.yml b/.github/workflows/chart-lint-test.yml index 620586d1f..b044d1599 100644 --- a/.github/workflows/chart-lint-test.yml +++ b/.github/workflows/chart-lint-test.yml @@ -44,7 +44,7 @@ jobs: - name: Add bitnami repo run: | - helm repo add bitnami https://charts.bitnami.com/bitnami + helm repo add bitnami https://charts.bitnami.com/bitnami helm repo update - name: Update Helm dependencies @@ -63,6 +63,26 @@ jobs: - name: Run linting run: ct lint --config charts/chart-testing-config.yaml --charts ./charts/managed-identity-wallet + verify-helm-docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: addnab/docker-run-action@v3 + with: + image: jnorwood/helm-docs:v1.10.0 + options: -v ${{ github.workspace }}/charts:/helm-docs + run: helm-docs + + - run: | + if $(git diff --quiet --exit-code); then + echo "Helm chart docs up to date" + else + echo "Helm chart docs not up to date:" + git diff + exit 1 + fi + chart-test: runs-on: ubuntu-latest steps: @@ -86,7 +106,7 @@ jobs: - name: Add bitnami repo run: | - helm repo add bitnami https://charts.bitnami.com/bitnami + helm repo add bitnami https://charts.bitnami.com/bitnami helm repo update - name: Update Helm dependencies