From 2b734a3cacdac3f30a5804ac53ab6588b6a97901 Mon Sep 17 00:00:00 2001 From: Timo Behrendt Date: Wed, 8 Oct 2025 16:39:34 +0200 Subject: [PATCH] refactor test to run as matrix --- .gitea/workflows/ci.yaml | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 3cb40f5..63ac466 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -7,21 +7,17 @@ jobs: test: name: Test runs-on: ubuntu-latest + strategy: + matrix: + json-file: + - "action.json" + - "k8s.json" + - "helm.json" + - "common.json" + - "docker-compose.json" steps: - 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 with: - json-file: "./action.json" - - 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" + json-file: "./${{ matrix.json-file }}"