Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional cncf conformance integration tests #198

Draft
wants to merge 25 commits into
base: master
Choose a base branch
from
17 changes: 16 additions & 1 deletion .github/workflows/k8s-snap-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ concurrency:

jobs:
build:
env:
TEST_CNCF_E2E: ${{ contains(github.event.pull_request.labels.*.name, 'cncf-conformance') || github.ref_name == 'master' }}
name: K8s-snap Integration Test
runs-on: ubuntu-20.04

Expand Down Expand Up @@ -59,7 +61,8 @@ jobs:
TEST_LXD_IMAGE: ubuntu:22.04
TEST_INSPECTION_REPORTS_DIR: ${{ github.workspace }}/inspection-reports
run: |
git clone https://github.com/canonical/k8s-snap.git
git clone https://github.com/canonical/k8s-snap.git -b KU-1748/optional-cncf-conformance-tests #revert after merging https://github.com/canonical/k8s-snap/pull/715
#git clone https://github.com/canonical/k8s-snap.git
cd k8s-snap/tests/integration && sg lxd -c 'tox -e integration'
- name: Prepare inspection reports
if: failure()
Expand All @@ -71,3 +74,15 @@ jobs:
with:
name: inspection-reports
path: ${{ github.workspace }}/inspection-reports.tar.gz
- name: Extract CNCF conformance report
if: ${{ failure() && ( env.TEST_CNCF_E2E == 'true' ) }}
working-directory: k8s-snap/tests/integration
run: |
tar -xf sonobuoy_e2e.tar.gz --one-top-level
- name: Upload CNCF conformance report artifact
uses: actions/upload-artifact@v4
if: ${{ failure() && ( env.TEST_CNCF_E2E == 'true' ) }}
with:
name: report_sonobuoy_e2e
path: k8s-snap/tests/integration/sonobuoy_e2e

Loading