Skip to content

Merge pull request #89 from mia-platform-marketplace/fix/CR-27-docs-l… #106

Merge pull request #89 from mia-platform-marketplace/fix/CR-27-docs-l…

Merge pull request #89 from mia-platform-marketplace/fix/CR-27-docs-l… #106

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ main ]
tags: '*'
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: docker network create app --driver bridge
- run: docker pull bitnami/zookeeper:latest
- run: docker run -d --rm --name zookeeper --network=app -e ALLOW_ANONYMOUS_LOGIN=yes -p 2180:2181 bitnami/zookeeper
- run: docker pull bitnami/kafka:latest
- run: docker run -d --rm --name kafka --network=app -e KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181 -e KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true -e KAFKA_CFG_ADVERTISED_LISTENERS='PLAINTEXT://127.0.0.1:9092,INTERNAL://localhost:9093' -e KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP='PLAINTEXT:PLAINTEXT,INTERNAL:PLAINTEXT' -e KAFKA_CFG_LISTENERS='PLAINTEXT://0.0.0.0:9092,INTERNAL://0.0.0.0:9093' -e KAFKA_INTER_BROKER_LISTENER_NAME='INTERNAL' -e ALLOW_PLAINTEXT_LISTENER=yes -p 2181:2181 -p 443:9092 -p 9092:9092 -p 9093:9093 bitnami/kafka
- run: sleep 5s && npm run coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}