From 76185f7481d3ce2d7391627afbaf2f8ae1fc24d6 Mon Sep 17 00:00:00 2001 From: Sebastian Sch Date: Mon, 11 Mar 2024 13:54:14 +0200 Subject: [PATCH] run k8s functional tests Signed-off-by: Sebastian Sch --- .github/workflows/build-test-lint.yml | 31 +++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/build-test-lint.yml b/.github/workflows/build-test-lint.yml index 1fe616f07..db7b4ed75 100644 --- a/.github/workflows/build-test-lint.yml +++ b/.github/workflows/build-test-lint.yml @@ -122,3 +122,34 @@ jobs: # if this fails, run go mod vendor - name: Check if vendor directory is consistent with go modules run: go mod vendor && git diff --exit-code + + sriov-operator-e2e-test: + name: SR-IOV operator e2e tests + needs: [ build,test ] + runs-on: [ sriov ] + env: + TEST_REPORT_PATH: k8s-artifacts + steps: + - name: Check out the repo + uses: actions/checkout@v3 + + - name: build sriov-network-device-plugin image + run: podman build -f images/Dockerfile -t ghaction-sriov-network-device-plugin:pr-${{github.event.pull_request.number}} . + + - name: Check out sriov operator's code + uses: actions/checkout@v2 + with: + repository: k8snetworkplumbingwg/sriov-network-operator + path: sriov-network-operator-wc + + - name: run test + run: make test-e2e-conformance-virtual-k8s-cluster-ci + working-directory: sriov-network-operator-wc + env: + LOCAL_SRIOV_DEVICE_PLUGIN_IMAGE: ghaction-sriov-network-device-plugin:pr-${{github.event.pull_request.number}} + + - uses: actions/upload-artifact@v3 + if: always() + with: + name: ${{ env.TEST_REPORT_PATH }} + path: ./sriov-network-operator-wc/${{ env.TEST_REPORT_PATH }}