-
Notifications
You must be signed in to change notification settings - Fork 13
55 lines (45 loc) · 1.35 KB
/
test-e2e.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
51
52
53
54
55
name: E2E test
on:
workflow_call:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main
tags:
- 'v*'
jobs:
test-controlplane-lifecycle-management:
name: Test ControlPlane lifecycle management
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: v1.19
cache: true
- name: Install kubectl
uses: azure/setup-kubectl@v3
id: install
- name: Run test
run: |
test/e2e/run.sh
- name: Show kubeconfig contexts
if: always()
run: kubectl config get-contexts
- name: Show running components of KubeFlex
if: always()
run: kubectl --context kind-kubeflex -n kubeflex-system get all
- name: Show logs of the KubeFlex controller manager
if: always()
run: kubectl --context kind-kubeflex -n kubeflex-system logs deploy/kubeflex-controller-manager
- name: Show logs of the shared Postgres DB
if: always()
run: kubectl --context kind-kubeflex -n kubeflex-system logs sts/postgres-postgresql
- name: Show logs of the KubeFlex operator
if: always()
run: kubectl --context kind-kubeflex -n kubeflex-system logs job/kubeflex-operator