From 3ee7d69f9fff92fca33468a2f56a7b1e2594f7c1 Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Tue, 1 Oct 2024 10:52:42 +0200 Subject: [PATCH] Clean up json schema CI job --- .github/workflows/jsonschema.yaml | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/.github/workflows/jsonschema.yaml b/.github/workflows/jsonschema.yaml index ca4fd7135..64ce8f852 100644 --- a/.github/workflows/jsonschema.yaml +++ b/.github/workflows/jsonschema.yaml @@ -1,41 +1,19 @@ --- name: Verify json schema -# -# Documentation: -# https://help.github.com/en/articles/workflow-syntax-for-github-actions -# - -############################# -# Start the job on all push # -############################# on: [push, pull_request] -############### -# Set the Job # -############### jobs: jsonschema_tests: - # Name the Job name: Json Schema tests strategy: matrix: python-version: [3.11] - # Set the agent to run on runs-on: ubuntu-latest - ################## - # Load all steps # - ################## steps: - ########################## - # Checkout the code base # - ########################## - name: Checkout Code uses: actions/checkout@v4 - with: - # Full git history is needed to get a proper list of changed files within `super-linter` - fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 @@ -54,9 +32,8 @@ jobs: - name: Verify secrets json schema against templates run: | - # check-jsonschema needs .yaml as an extension cp ./values-secret.yaml.template ./values-secret.yaml - check-jsonschema --schemafile https://raw.githubusercontent.com/validatedpatterns/rhvp.cluster_utils/refs/heads/main/roles/vault_utils/values-secrets.v2.schema.json values-secret.yaml + check-jsonschema --fill-defaults --schemafile https://raw.githubusercontent.com/validatedpatterns/rhvp.cluster_utils/refs/heads/main/roles/vault_utils/values-secrets.v2.schema.json values-secret.yaml rm -f ./values-secret.yaml - name: Verify ClusterGroup values.schema.json against values-*yaml files @@ -66,7 +43,7 @@ jobs: # disable shellcheck of single quotes in yq # shellcheck disable=2016 yq eval-all '. as $item ireduce ({}; . * $item )' values-global.yaml "$i" > tmp.yaml - check-jsonschema --schemafile https://raw.githubusercontent.com/validatedpatterns/clustergroup-chart/refs/heads/main/values.schema.json tmp.yaml + check-jsonschema --fill-defaults --schemafile https://raw.githubusercontent.com/validatedpatterns/clustergroup-chart/refs/heads/main/values.schema.json tmp.yaml rm -f tmp.yaml done