Skip to content

Commit

Permalink
Enforce value files must match schema
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Nov 23, 2024
1 parent c82af70 commit cd43ed1
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions .github/workflows/helm-charts-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,32 @@ 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:
chart:
- cron-jobs
- default-backend
- docker-hub-exporter
- pi-hole-exporter
- redirect
- redis-db-assignment-operator
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 }}/ci/values.yaml,charts/${{ matrix.chart }}/ci/*-values.yaml
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:
Expand Down

0 comments on commit cd43ed1

Please sign in to comment.