-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (42 loc) · 1.13 KB
/
main.yml
File metadata and controls
45 lines (42 loc) · 1.13 KB
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
name: DotnetEventBus
on:
pull_request:
branches:
- main
jobs:
container-job:
runs-on: ubuntu-latest
services:
rabbitmq:
image: rabbitmq:3-management-alpine
ports:
- 15672:15672
- 5672:5672
kafka:
image: wurstmeister/kafka
ports:
- 9094:9094
env:
KAFKA_CREATE_TOPICS: "test:1:1:compact,test2:1:1:compact"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: INSIDE://:9092,OUTSIDE://localhost:9094
KAFKA_LISTENERS: INSIDE://:9092,OUTSIDE://:9094
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_BROKER_ID: 1
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
steps:
- name: checkout
uses: actions/checkout@v1
- name: setup dotnet core
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
5.0.x
6.0.x
3.1.x
- run: dotnet build
- run: dotnet test