From 57c0f0f078109ecaa0fccc944f9cc7323b795008 Mon Sep 17 00:00:00 2001
From: Alok N <alokme123@gmail.com>
Date: Fri, 21 Jul 2023 16:52:29 +0530
Subject: [PATCH] feat: split up kuttl tests (#7861)

Signed-off-by: Alok N <alokme123@gmail.com>
Co-authored-by: Chip Zoller <chipzoller@gmail.com>
---
 .github/workflows/conformance.yaml | 29 +++++++++++++++++++++++++++--
 1 file changed, 27 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/conformance.yaml b/.github/workflows/conformance.yaml
index c300e3a611..1ef2e8f451 100644
--- a/.github/workflows/conformance.yaml
+++ b/.github/workflows/conformance.yaml
@@ -232,8 +232,33 @@ jobs:
             version: v1.26.6
           - name: v1.27
             version: v1.27.3
+        tests:
+          - argo
+          - aws
+          - best-practices
+          - castai
+          - cert-manager
+          - consul
+          - external-secret-operator
+          - flux
+          - istio
+          - karpenter
+          - kasten
+          - kubecost
+          - kubeops
+          - kubevirt
+          - linkerd
+          - nginx-ingress
+          - openshift
+          - other
+          # - pod-security
+          # - psa
+          - psp-migration
+          # - tekton
+          # - traefik
+          # - velero
     needs: prepare-images
-    name: ${{ matrix.k8s-version.name }} - ${{ matrix.config.name }}
+    name: ${{ matrix.k8s-version.name }} - ${{ matrix.config.name }} - ${{ matrix.tests }}
     steps:
       - name: Checkout kyverno/kyverno
         uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
@@ -271,7 +296,7 @@ jobs:
       - name: Test policy library with kuttl
         run: |
           cd policies
-          ../.tools/kubectl-kuttl test . --config ./kuttl-test.yaml
+          ../.tools/kubectl-kuttl test ./${{ matrix.tests }} --config ./kuttl-test.yaml
       - name: Debug failure
         if: failure()
         uses: ./.github/actions/kyverno-logs