2022-10-20 12:17:33 +00:00
|
|
|
name: Conformance tests
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
- 'release*'
|
|
|
|
|
|
|
|
jobs:
|
2022-11-04 14:00:31 +00:00
|
|
|
run-conformance:
|
2022-10-20 12:17:33 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-11-04 14:00:31 +00:00
|
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3.1.0
|
2022-10-20 12:17:33 +00:00
|
|
|
- name: Unshallow
|
|
|
|
run: git fetch --prune --unshallow
|
|
|
|
- name: Setup go
|
2022-11-04 14:00:31 +00:00
|
|
|
uses: actions/setup-go@c4a742cab115ed795e34d4513e2cf7d472deb55f # pin@v3.3.1
|
2022-10-20 12:17:33 +00:00
|
|
|
with:
|
|
|
|
go-version: ~1.18.6
|
2022-11-07 18:01:25 +00:00
|
|
|
- name: Prepare environment
|
2022-11-04 14:00:31 +00:00
|
|
|
run: make kind-create-cluster kind-deploy-kyverno
|
|
|
|
- name: Wait for Kyverno to start
|
|
|
|
run: sleep 60
|
|
|
|
- name: Test with kuttl
|
2022-11-07 18:01:25 +00:00
|
|
|
run: make test-kuttl
|
2022-11-14 20:34:56 +00:00
|
|
|
- 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 -p || true
|
|
|
|
kubectl -n kyverno logs deploy/kyverno
|