From f55f4855082598b93c97fa6f6e73f7f6c794e735 Mon Sep 17 00:00:00 2001 From: Tom Pantelis Date: Wed, 18 Sep 2024 22:49:49 -0400 Subject: [PATCH] Add GHA to run MCS conformance tests Signed-off-by: Tom Pantelis --- .github/workflows/e2e.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index b87ac8ec..4cef8164 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -68,3 +68,34 @@ jobs: - name: Post mortem if: failure() uses: submariner-io/shipyard/gh-actions/post-mortem@devel + conformance-test: + name: MCS Conformance + needs: images + timeout-minutes: 30 + runs-on: ubuntu-latest + steps: + - name: Check out the repository + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 + + - name: Check out the mcs-api repository + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 + with: + ref: ccc5d8474f4a8502e2a02c83aefc97e96d78655d + repository: kubernetes-sigs/mcs-api + path: mcs-api + + - name: Deploy Submariner + shell: bash + run: | + make deploy + + - name: Run conformance tests + shell: bash + run: | + export KUBECONFIG=$(find $(git rev-parse --show-toplevel)/output/kubeconfigs/ -type f -printf %p:) + cd mcs-api/conformance + go test -v -timeout 30m -contexts cluster1,cluster2 -args -test.timeout 15m --ginkgo.v --ginkgo.trace + + - name: Post mortem + if: failure() + uses: submariner-io/shipyard/gh-actions/post-mortem@devel