diff --git a/.github/workflows/tests-cluster-chainsaw.yaml b/.github/workflows/tests-cluster-chainsaw.yaml index 555b3fe07..40188c87e 100644 --- a/.github/workflows/tests-cluster-chainsaw.yaml +++ b/.github/workflows/tests-cluster-chainsaw.yaml @@ -6,8 +6,23 @@ on: - 'gh-pages' jobs: - test-cluster-standalone: + test-list: runs-on: ubuntu-22.04 + outputs: + tests: ${{ steps.listTests.outputs.tests }} + steps: + - name: Checkout + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + with: + fetch-depth: 1 + - id: listTests + run: | + echo "tests=$(ls charts/cluster/test -1 | jq -cRn '{ include: [inputs | { test: "\(.)" }]}')" >> $GITHUB_OUTPUT + test: + needs: test-list + runs-on: ubuntu-22.04 + strategy: + matrix: ${{ fromJson(needs.test-list.outputs.tests) }} steps: - name: Checkout uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 @@ -46,4 +61,4 @@ jobs: tenant minio-operator/tenant - name: Run Kyverno/Chainsaw - run: chainsaw test + run: chainsaw test charts/cluster/test/${{matrix.test}}