forked from Apicurio/apicurio-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
117 lines (98 loc) · 3.42 KB
/
kubernetes-tests.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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: Kubernetes Tests Workflow
on:
push:
paths-ignore:
- '.gitignore'
- 'LICENSE'
- 'README*'
- 'docs/**'
- '.github/workflows/**'
branches: [master]
pull_request:
paths-ignore:
- '.gitignore'
- 'LICENSE'
- 'README*'
- 'docs/**'
branches: [master]
jobs:
kubernetes-tests-basic:
name: Kubernetes Tests Basic
runs-on: ubuntu-18.04
if: github.repository_owner == 'Apicurio'
steps:
- name: Checkout Code
uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.16.8'
- run: go version
- name: Set up JDK 11
uses: AdoptOpenJDK/install-jdk@v1
with:
version: 11
architecture: x64
- name: Get maven wrapper
run: mvn -N io.takari:maven:wrapper -Dmaven=3.8.2
- name: Build api-model
run: |
git clone https://github.com/Apicurio/apicurio-registry-operator.git
cd apicurio-registry-operator/api-model
mvn install
- name: Build All Variants
run: make SKIP_TESTS=true BUILD_FLAGS='-Psystemtests -Dmaven.javadoc.skip=true --no-transfer-progress -Dmaven.wagon.httpconnectionManager.maxTotal=30 -Dmaven.wagon.http.retryHandler.count=5' build-all
- name: Build The Tagged Docker Images
run: |
make IMAGE_TAG=latest-ci build-mem-image
make IMAGE_TAG=latest-ci build-sql-image
make IMAGE_TAG=latest-ci build-kafkasql-image
- name: Kubernetes Tests
run: CI_BUILD=true APICURIO_IMAGES_TAG="latest-ci" E2E_APICURIO_TESTS_PROFILE=acceptance ./.github/scripts/test_apicurio_kubernetes.sh
- name: Collect logs
if: failure()
run: ./.github/scripts/collect_kubernetes_logs.sh
- name: Upload tests logs artifacts
if: failure()
uses: actions/[email protected]
with:
name: tests-logs
path: artifacts
kubernetes-tests-clustered:
name: Kubernetes Tests Clustered
runs-on: ubuntu-18.04
if: github.repository_owner == 'Apicurio'
steps:
- name: Checkout Code
uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.16.8'
- run: go version
- name: Set up JDK 11
uses: AdoptOpenJDK/install-jdk@v1
with:
version: 11
architecture: x64
- name: Build api-model
run: |
git clone https://github.com/Apicurio/apicurio-registry-operator.git
cd apicurio-registry-operator/api-model
mvn install
- name: Build All Variants
run: mvn clean install -Pprod -Psql -Pkafkasql -Pmultitenancy -Psystemtests -DskipTests -Dmaven.javadoc.skip=true --no-transfer-progress
- name: Build The Tagged Docker Images
run: |
make IMAGE_TAG=latest-ci build-mem-image
make IMAGE_TAG=latest-ci build-sql-image
make IMAGE_TAG=latest-ci build-kafkasql-image
- name: Kubernetes Tests
run: CI_BUILD=true APICURIO_IMAGES_TAG="latest-ci" E2E_APICURIO_TESTS_PROFILE=clustered ./.github/scripts/test_apicurio_kubernetes.sh
- name: Collect logs
if: failure()
run: ./.github/scripts/collect_kubernetes_logs.sh
- name: Upload tests logs artifacts
if: failure()
uses: actions/[email protected]
with:
name: tests-logs
path: artifacts