|
| 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 |
0 commit comments