Skip to content

Commit

Permalink
enable e2e testing
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 22, 2023
1 parent eb16cb3 commit bd0501d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
32 changes: 18 additions & 14 deletions .github/workflows/go-presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:
branches:
- main
- release-*
- backplane-*

env:
# Common versions
GO_VERSION: '1.19'
GO_REQUIRED_MIN_VERSION: ''
GOPATH: '/home/runner/work/work/work/go'
defaults:
run:
working-directory: go/src/open-cluster-management.io/work
Expand All @@ -22,7 +22,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 @@ -38,7 +38,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 @@ -54,7 +54,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 @@ -70,7 +70,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 @@ -86,7 +86,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 @@ -102,7 +102,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 @@ -111,18 +111,22 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}
- name: install imagebuilder
run: go install github.com/openshift/imagebuilder/cmd/imagebuilder@v1.2.1
run: go install github.com/openshift/imagebuilder/cmd/imagebuilder@v1.2.3
- 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.11.1
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
run: kind load docker-image --name=kind ${IMAGE_REGISTRY}/work:${IMAGE_TAG}
env:
IMAGE_REGISTRY: quay.io/stolostron
IMAGE_TAG: e2e
- name: Run e2e test
run: |
make test-e2e
run: make test-e2e
env:
KUBECONFIG: /home/runner/.kube/config
IMAGE_REGISTRY: quay.io/stolostron
IMAGE_TAG: e2e
IMAGE_NAME: quay.io/stolostron/work:e2e
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 bd0501d

Please sign in to comment.