Skip to content

Commit a43a2a6

Browse files
created CI (#81)
* created CI CI for master branch * separated tests To facilitate identification. * updated build badge * Update README.md Co-authored-by: Stephane Maarek <simplesteph@users.noreply.github.com>
1 parent 421e630 commit a43a2a6

File tree

2 files changed

+56
-1
lines changed

2 files changed

+56
-1
lines changed

.github/workflows/main.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the action will run.
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the master branch
8+
push:
9+
branches: [ master ]
10+
pull_request:
11+
branches: [ master ]
12+
env:
13+
DOCKER_HOST_IP: 127.0.0.1
14+
15+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
16+
jobs:
17+
# This workflow contains a single job called "build"
18+
build:
19+
# The type of runner that the job will run on
20+
runs-on: ubuntu-latest
21+
22+
# Steps represent a sequence of tasks that will be executed as part of the job
23+
steps:
24+
25+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26+
- uses: actions/checkout@v2
27+
- name: add kafka repo key
28+
run: wget -qO - https://packages.confluent.io/deb/4.0/archive.key | sudo apt-key add -
29+
30+
- name: add kafka binary repo
31+
run: sudo add-apt-repository "deb [arch=amd64] https://packages.confluent.io/deb/4.0 stable main"
32+
33+
- name: install kafka binary
34+
run: sudo apt-get install confluent-platform-oss-2.11
35+
36+
37+
# Runs a set of commands using the runners shell
38+
- uses: docker-practice/actions-setup-docker@master
39+
- name: run test single 2
40+
run: ./test.sh zk-single-kafka-single.yml 2
41+
42+
- name: run test single 4
43+
run: ./test.sh zk-multiple-kafka-single.yml 4
44+
45+
- name: run test multiple 4
46+
run: ./test.sh zk-single-kafka-multiple.yml 4
47+
48+
- name: run test multiple 6
49+
run: ./test.sh zk-multiple-kafka-multiple.yml 6
50+
51+
- name: run test multiple-schema-registry 7
52+
run: ./test.sh zk-multiple-kafka-multiple-schema-registry.yml 7
53+
54+
- name: run test full-stack 10
55+
run: ./test.sh full-stack.yml 10

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/simplesteph/kafka-stack-docker-compose.svg?branch=master)](https://travis-ci.org/simplesteph/kafka-stack-docker-compose)
1+
![Build Status]((https://github.com/conduktor/kafka-stack-docker-compose/actions/workflows/main.yml/badge.svg))
22

33
# An open-source project by [![Conduktor.io](https://www.conduktor.io/uploads/conduktor.svg)](https://conduktor.io/)
44

0 commit comments

Comments
 (0)