-
Notifications
You must be signed in to change notification settings - Fork 101
102 lines (86 loc) · 2.48 KB
/
run_ci.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Run Operator Unit Tests
on: [push, pull_request, workflow_dispatch]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
GO111MODULE: "on"
GOPROXY: "https://proxy.golang.org"
KUBERNETES_VERSION: "v1.17.3"
jobs:
run-tests:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- name: checkout
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Deploy Dependencies
id: deploy
run: |
bash .travis/install-tools.sh
bash .travis/install-python.sh
sudo bash .travis/install-minikube.sh
- name: Run Generate API
id: run-gen-api
run: make gen-api-fail-if-dirty --always-make || exit 1
- name: Run Build
id: run-build
run: make build || exit 1
- name: Run Test
id: run-test
run: make test || exit 1
- name: Run Test OLM
id: run-test-olm
run: sudo env "PATH=$PATH" make test-olm || exit 1
run-cli-tests:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- name: checkout
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Deploy Dependencies
id: deploy
run: |
bash .travis/install-tools.sh
bash .travis/install-python.sh
sudo bash .travis/install-minikube.sh
- name: Run Build CLI
id: run-build-cli
run: make cli || exit 1
- name: Run Build Image
id: run-build-image
run: make image || exit 1
- name: Run Test CLI
id: run-test-cli
run: sudo make test-cli-flow || exit 1
run-core-config-map-tests:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- name: checkout
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Deploy Dependencies
id: deploy
run: |
bash .travis/install-tools.sh
bash .travis/install-python.sh
sudo bash .travis/install-minikube.sh
- name: Run Build CLI
id: run-build-cli
run: make cli || exit 1
- name: Run Build Image
id: run-build-image
run: make image || exit 1
- name: Run Test Core config map
id: run-test-core-config-map-flow
run: sudo make test-core-config-map-flow || exit 1