refactor test to run as matrix
All checks were successful
CI / Test (action.json) (pull_request) Successful in 14s
CI / Test (helm.json) (pull_request) Successful in 12s
CI / Test (docker-compose.json) (pull_request) Successful in 34s
CI / Test (k8s.json) (pull_request) Successful in 12s
CI / Test (common.json) (pull_request) Successful in 12s

This commit is contained in:
2025-10-08 16:39:34 +02:00
parent 5cae61b032
commit 2b734a3cac

View File

@@ -7,21 +7,17 @@ jobs:
test: test:
name: Test name: Test
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
json-file:
- "action.json"
- "k8s.json"
- "helm.json"
- "common.json"
- "docker-compose.json"
steps: steps:
- uses: actions/checkout@v5 - uses: actions/checkout@v5
- name: Validate "action.json" - name: Validate "${{ matrix.json-file }}"
uses: https://gitea.t000-n.de/t.behrendt/validate-json-by-json-schema-action@0.1.2 uses: https://gitea.t000-n.de/t.behrendt/validate-json-by-json-schema-action@0.1.2
with: with:
json-file: "./action.json" json-file: "./${{ matrix.json-file }}"
- name: Validate "k8s.json"
uses: https://gitea.t000-n.de/t.behrendt/validate-json-by-json-schema-action@0.1.2
with:
json-file: "./k8s.json"
- name: Validate "helm.json"
uses: https://gitea.t000-n.de/t.behrendt/validate-json-by-json-schema-action@0.1.2
with:
json-file: "./helm.json"
- name: Validate "common.json"
uses: https://gitea.t000-n.de/t.behrendt/validate-json-by-json-schema-action@0.1.2
with:
json-file: "./common.json"