name: Setup test env

description: Create kind cluster, deploy kyverno, and wait pods are ready.

inputs:
  version:
    description: kubernetes version
    default: v1.26.0

runs:
  using: composite
  steps:
    - shell: bash
      run: |
        export KIND_IMAGE=kindest/node:${{ inputs.version }}
        make kind-create-cluster kind-deploy-kyverno
    - uses: ./.github/actions/kyverno-wait-ready
