Skip to content

Commit

Permalink
DNM: testing sriov-network-operator/pull/518
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Panattoni <[email protected]>
  • Loading branch information
zeeke committed Nov 2, 2023
1 parent 7366121 commit 0b63a38
Showing 1 changed file with 16 additions and 29 deletions.
45 changes: 16 additions & 29 deletions .github/workflows/buildtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,47 +57,34 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: test/coverage/lcov.info

build-and-push-amd64-sriov-cni-on-pr:
name: PR Image Push AMD64
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: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and push sriov-cni
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64
tags: |
ghaction-sriov-cni:pr-${{github.event.pull_request.number}}
file: ./Dockerfile

virtual-k8s-cluster:
name: sriov operator k8s tests
needs: [ build-test,build-and-push-amd64-sriov-cni-on-pr ]
runs-on: [ sriov ]
steps:
- name: Check out code into the Go module directory
- name: build sriov-cni image
run: podman build -t ghaction-sriov-cni:pr-${{github.event.pull_request.number}} .

- name: Check out sriov operator's code
uses: actions/checkout@v2
with:
repository: https://github.com/k8snetworkplumbingwg/sriov-network-operator

- name: Set up Go 1.20
uses: actions/setup-go@v3
with:
go-version: 1.20.x
repository: zeeke/sriov-network-operator-1
ref: e2e-inject-images
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_CNI_IMAGE=ghaction-sriov-cni:pr-${{github.event.pull_request.number}}
LOCAL_SRIOV_CNI_IMAGE: ghaction-sriov-cni:pr-${{github.event.pull_request.number}}

- uses: actions/upload-artifact@v3
if: always()
with:
name: k8s-artifact
path: ./k8s-artifacts
name: ${{ env.TEST_REPORT_PATH }}
path: ./sriov-network-operator-wc/${{ env.TEST_REPORT_PATH }}

0 comments on commit 0b63a38

Please sign in to comment.