-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (64 loc) · 1.79 KB
/
e2e.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
58
59
60
61
62
63
64
---
name: "Integration tests"
on:
push:
pull_request:
branches:
- master
jobs:
build_image:
name: Build k8s-toolbox desk
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build image
run: |
./_desk/build-image.sh
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Push images to container registry
run: |
./_desk/push-image.sh
install_k8s:
name: Install k8s and run tests
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-go@v3
with:
go-version: '^1.20.3'
- run: go version
- name: Checkout code
uses: actions/checkout@v2
- name: Build and install k8s-toolbox
run: |
go install .
- name: Install k8s using kind
run: |
ktbx install kind
ktbx create --single --calico
kubectl get pods -n kube-system
kubectl get nodes
- name: Start nginx
run: |
./itest/run-nginx.sh
- name: Test nginx
run: |
./itest/test-nginx.sh
- name: Install olm and argocd
run: |
ktbx install olm
ktbx install argocd
- name: Run argocd example application
run: |
kubectl config set-context --current --namespace=argocd
argocd login --core
argocd app create apps --dest-namespace argocd --dest-server https://kubernetes.default.svc \
--repo https://github.com/argoproj/argocd-example-apps.git --path apps
argocd app sync apps
- name: Install argo-workflows
run: |
ktbx install argowf