-
Notifications
You must be signed in to change notification settings - Fork 11
57 lines (55 loc) · 1.58 KB
/
test-windup.yml
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
51
52
53
54
55
56
57
name: Test Windup Addon
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
paths-ignore:
- '**.md'
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/checkout@v3
- run: make fmt
vet:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/checkout@v3
- run: make vet
build:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
- uses: actions/checkout@v3
- run: make cmd
build-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: make podman-build
test-e2e:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: start-minikube
uses: konveyor/tackle2-operator/.github/actions/start-minikube@main
- name: Build image in minikube
run: |
export SHELL=/bin/bash
export IMG=quay.io/konveyor/tackle2-addon-windup:${{ github.sha }}
eval $(minikube -p minikube docker-env)
make docker-build
- name: install-tackle
uses: konveyor/tackle2-operator/.github/actions/install-tackle@main
with:
tackle-addon-windup-image: quay.io/konveyor/tackle2-addon-windup:${{ github.sha }}
tackle-image-pull-policy: IfNotPresent
- name: Run End-to-End Tests
run: |
export HOST=$(minikube ip)/hub
export NAMESPACE=$(kubectl get tackles.tackle.konveyor.io --all-namespaces --no-headers | awk '{print $1}')
make test-e2e