-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.12 KB
/
integration.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
name: Integration Testing
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
services:
zookeeper:
image: confluentinc/cp-zookeeper:latest
options: >-
--env ZOOKEEPER_CLIENT_PORT=2181
kafka:
image: confluentinc/cp-kafka:latest
ports:
- 9092:9092
options: >-
--env KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
--env KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./operator
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create k8s Kind Cluster
uses: helm/[email protected]
with:
cluster_name: "k8scluster"
- name: Build RPC
run: docker build -t rpc:1.0 -f docker/dockerfile.rpc .
- name: Load Docker Image
run: kind load docker-image rpc:1.0 --name k8scluster
- name: Apply main manifest
run: kubectl apply -f test/main.yaml
- name: Validate controller
run: ./test/expect