-
Notifications
You must be signed in to change notification settings - Fork 219
95 lines (80 loc) · 2.34 KB
/
integration.yaml
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Integration Tests
on:
push:
branches: [ 'main', 'release-*' ]
pull_request:
branches: [ 'main', 'release-*' ]
permissions:
contents: read
jobs:
integration:
name: CloudEvents
strategy:
matrix:
# Only test one go version: the integration tests don't seem to pass if NATS runs more one running at a time.
go-version: [1.21.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
services:
kafka:
image: lensesio/fast-data-dev
env:
ADV_HOST: localhost
ports:
- 9091:9091
- 9092:9092
kafka_confluent:
image: confluentinc/confluent-local:7.6.0
ports:
- "9192:9192"
env:
KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://localhost:29192,PLAINTEXT_HOST://localhost:9192'
KAFKA_CONTROLLER_QUORUM_VOTERS: '1@localhost:29193'
KAFKA_LISTENERS: 'PLAINTEXT://localhost:29192,CONTROLLER://localhost:29193,PLAINTEXT_HOST://0.0.0.0:9192'
natss:
image: nats-streaming:0.22.1
ports:
- 4222:4222
jetstream:
image: bitnami/nats:latest
env:
NATS_EXTRA_ARGS: "--jetstream --port 4223"
ports:
- 4223:4223
amqp:
image: scholzj/qpid-dispatch
env:
QDROUTERD_CONFIG_OPTIONS: |
router {
mode: standalone
id: ZTg2NDQ0N2Q1YjU1OGE1N2NkNzY4NDFk
workerThreads: 4
}
log {
module: DEFAULT
enable: trace+
timestamp: true
}
listener {
role: normal
host: 0.0.0.0
port: amqp
saslMechanisms: ANONYMOUS
}
ports:
- 5672:5672
mqtt:
image: eclipse-mosquitto:1.6
ports:
- 1883:1883
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: v2/go.sum
id: go
- name: Test
run: ./hack/integration-test.sh