-
Notifications
You must be signed in to change notification settings - Fork 30
42 lines (40 loc) · 1.44 KB
/
integration-test.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
name: Raccoon Integration Test
on:
- push
- pull_request
jobs:
kafka-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: setup integration environment
uses: ./.github/workflows/integration-test-setup
- name: Copy integration config
run: cp .env.test .env
- name: Run Raccoon
run: make docker-run
- name: Invoking go test
run: INTEGTEST_BOOTSTRAP_SERVER=localhost:9094 INTEGTEST_HOST=localhost:8080 INTEGTEST_TOPIC_FORMAT="clickstream-%s-log" GRPC_SERVER_ADDR="localhost:8081" go test ./integration -v
pubsub-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: setup integration environment
uses: ./.github/workflows/integration-test-setup
- name: start pubsub emulator
run: docker compose up pubsub-emulator -d
- name: run integration tests
run: PUBSUB_EMULATOR_HOST=localhost:8085 go test ./publisher/pubsub -v
kinesis-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: setup integration environment
uses: ./.github/workflows/integration-test-setup
- name: start localstack (kinesis emulator)
run: docker compose up localstack -d
- name: run integration tests
run: LOCALSTACK_HOST=http://localhost:4566 go test ./publisher/kinesis/ -v