1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/.github/workflows/conformance.yaml

40 lines
1.3 KiB
YAML
Raw Normal View History

name: Conformance tests
on:
pull_request:
branches:
- 'main'
- 'release*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
run-conformance:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3.1.0
- name: Unshallow
run: git fetch --prune --unshallow
- name: Setup go
uses: actions/setup-go@d0a58c1c4d2b25278816e339b944508c875f3613 # pin@v3.3.1
with:
go-version: ~1.18.6
- name: Prepare environment
run: make kind-create-cluster kind-deploy-kyverno
- name: Wait for Kyverno to start
run: sleep 60
- name: Test with kuttl
run: make test-kuttl
- name: Debug failure
if: failure()
run: |
kubectl get mutatingwebhookconfigurations,validatingwebhookconfigurations
kubectl -n kyverno get pod
kubectl -n kyverno describe pod | grep -i events -A10
kubectl -n kyverno logs deploy/kyverno --all-containers -p || true
kubectl -n kyverno logs deploy/kyverno --all-containers
kubectl -n kyverno logs deploy/cleanup-controller --all-containers -p || true
kubectl -n kyverno logs deploy/cleanup-controller --all-containers