From 6288936c53e4624f27392132c05fc0ca47ed764c Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Sat, 23 Nov 2024 15:51:03 +0100 Subject: [PATCH] Enforce value files must match schema --- .github/workflows/helm-charts-test.yaml | 41 +++++++++++-------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/.github/workflows/helm-charts-test.yaml b/.github/workflows/helm-charts-test.yaml index 127eb9b..e357d73 100644 --- a/.github/workflows/helm-charts-test.yaml +++ b/.github/workflows/helm-charts-test.yaml @@ -18,33 +18,28 @@ jobs: - name: Lint charts id: lint run: ct lint --all -# collect-values-files-to-validate: -# runs-on: ubuntu-latest -# name: Validate values schema json -# steps: -# - name: Checkout -# uses: actions/checkout@v4 -# - name: Validate values schema json -# uses: losisin/helm-values-schema-json-action@v1 -# with: -# input: values.yaml -# fail-on-diff: true -# validate-values-schema: -# runs-on: ubuntu-latest -# name: Validate values schema json -# steps: -# - name: Checkout -# uses: actions/checkout@v4 -# - name: Validate values schema json -# uses: losisin/helm-values-schema-json-action@v1 -# with: -# input: values.yaml -# fail-on-diff: true + validate-values-schema: + runs-on: ubuntu-latest + name: Validate values schema json + strategy: + matrix: + include: + - chart: cron-jobs + values: ci/sleep-values.yaml + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Validate values schema json + uses: losisin/helm-values-schema-json-action@v1 + with: + input: charts/${{ matrix.chart }}/${{ matrix.values }} + output: charts/${{ matrix.chart }}/values.schema.json + fail-on-diff: true test: runs-on: ubuntu-latest needs: - lint -# - validate-values-schema + - validate-values-schema strategy: fail-fast: false matrix: