Skip to content

Commit

Permalink
enable e2e testing - backplane 2.3
Browse files Browse the repository at this point in the history
Signed-off-by: Yang Le <yangle@redhat.com>
  • Loading branch information
elgnay committed Nov 20, 2023
1 parent ed464bd commit ad7e06a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/go-presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- main
- release-*
- backplane-*

env:
# Common versions
Expand All @@ -23,7 +24,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/work
Expand All @@ -39,7 +40,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/work
Expand All @@ -55,7 +56,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/work
Expand All @@ -71,7 +72,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/work
Expand All @@ -87,7 +88,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/work
Expand All @@ -103,7 +104,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 1
path: go/src/open-cluster-management.io/work
Expand All @@ -114,16 +115,20 @@ jobs:
- name: install imagebuilder
run: go install github.com/openshift/imagebuilder/cmd/imagebuilder@v${{ env.IMAGEBUILDER_VERSION }}
- name: images
run: make images
run: IMAGE_REGISTRY=quay.io/stolostron IMAGE_TAG=e2e make images
- name: setup kind
uses: engineerd/setup-kind@v0.5.0
with:
version: v0.17.0
- name: Load image on the nodes of the cluster
run: |
kind load docker-image --name=kind quay.io/open-cluster-management/work:latest
export IMAGE_REGISTRY=quay.io/stolostron
export IMAGE_TAG=e2e
kind load docker-image --name=kind ${IMAGE_REGISTRY}/work:${IMAGE_TAG}
- name: Run e2e test
run: |
export IMAGE_REGISTRY=quay.io/stolostron
export IMAGE_TAG=e2e
make test-e2e
env:
KUBECONFIG: /home/runner/.kube/config
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.19 AS builder
FROM golang:1.19-bullseye AS builder
ARG OS=linux
ARG ARCH=amd64
WORKDIR /go/src/open-cluster-management.io/work
Expand Down

0 comments on commit ad7e06a

Please sign in to comment.