2022-10-20 14:17:33 +02:00
|
|
|
name: Conformance tests
|
2023-01-02 21:51:18 +01:00
|
|
|
|
2022-10-20 14:17:33 +02:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
- 'release*'
|
|
|
|
|
2022-11-23 18:59:57 +05:30
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-10-20 14:17:33 +02:00
|
|
|
jobs:
|
2022-11-04 10:00:31 -04:00
|
|
|
run-conformance:
|
2022-12-21 18:14:53 +08:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
k8s-version: [v1.24.7, v1.25.3, v1.26.0]
|
2022-10-20 14:17:33 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-01-06 06:50:37 +00:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2023-01-05 16:52:52 +01:00
|
|
|
- name: Setup build env
|
|
|
|
uses: ./.github/actions/setup-build-env
|
2022-10-20 14:17:33 +02:00
|
|
|
with:
|
2023-01-05 16:52:52 +01:00
|
|
|
build-cache-key: run-conformance
|
2023-01-05 23:36:13 +01:00
|
|
|
- name: Setup test env
|
|
|
|
uses: ./.github/actions/setup-test-env
|
|
|
|
with:
|
|
|
|
version: ${{ matrix.k8s-version }}
|
2022-11-04 10:00:31 -04:00
|
|
|
- name: Test with kuttl
|
2022-11-07 19:01:25 +01:00
|
|
|
run: make test-kuttl
|
2022-11-14 21:34:56 +01:00
|
|
|
- name: Debug failure
|
|
|
|
if: failure()
|
2023-01-05 12:35:04 +01:00
|
|
|
uses: ./.github/actions/kyverno-logs
|