Sonobuoy e2e nigthly tests #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CNCF Conformance Nightly Latest/Edge Tests | |
on: | |
schedule: | |
- cron: '0 0 * * 1' # Runs every monday midnight | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
test-cncf-conformance: | |
name: CNCF Conformance ${{ matrix.os }} ${{ matrix.arch }} ${{ matrix.releases }} | |
strategy: | |
matrix: | |
# os: ["ubuntu:20.04", "ubuntu:22.04", "ubuntu:24.04"] | |
os: ["ubuntu:24.04"] | |
arch: ["amd64"] | |
releases: ["latest/edge"] | |
runs-on: ${{ matrix.arch == 'arm64' && 'Ubuntu_ARM64_4C_16G_01' || 'ubuntu-20.04' }} | |
steps: | |
- name: Checking out repo | |
uses: actions/checkout@v4 | |
- name: Install lxd | |
run: | | |
sudo snap refresh lxd --channel 5.21/stable | |
sudo lxd init --auto | |
sudo usermod --append --groups lxd $USER | |
sg lxd -c 'lxc version' | |
echo "os_dash=${{ matrix.os }}" | sed 's/:/-/g' >> $GITHUB_ENV | |
- name: Install sonobuoy | |
run: | | |
build-scripts/hack/sonobuoy.sh download ${{ matrix.arch }} | |
- name: download ${{ matrix.releases }} k8s snap | |
run: | | |
snap download k8s --channel=${{ matrix.releases }} --basename k8s | |
- name: create k8s container | |
run: | | |
sg lxd -c 'build-scripts/hack/sonobuoy.sh create_container ${{ matrix.os }}' | |
- name: setup k8s in lxd container | |
run: | | |
sg lxd -c 'build-scripts/hack/sonobuoy.sh setup_k8s' | |
- name: Run end to end tests | |
run: | | |
build-scripts/hack/sonobuoy.sh run_e2e | |
- name: Upload inspection report artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: report_sonobuoy_e2e_${{ github.os_dash }}_${{ matrix.arch }} | |
path: sonobuoy_e2e |