forked from adobe/koperator
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (39 loc) · 1.08 KB
/
e2e-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: e2e-test
on:
push:
branches:
- master
pull_request:
env:
REPOSITORY: koperator_e2e_test
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21
# Enable Tmate Session if you'd like to Debut the E2E Kind Cluster
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
detached: true
- name: Checkout code
uses: actions/checkout@v4
- name: Build docker image
run: |
IMG=$REPOSITORY:$GITHUB_SHA make docker-build
- name: Setup Kind cluster
id: setup-kind
uses: ./.github/actions/kind-create
- name: Load image into kind cluster
run: |
kind load docker-image $REPOSITORY:$GITHUB_SHA --name e2e-kind
- name: Run E2E tests
env:
KUBECONFIG: ${{ steps.setup-kind.outputs.kubeconfig }}
run: |
go work init
go work use -r .
IMG_E2E=$REPOSITORY:$GITHUB_SHA make test-e2e