-
Notifications
You must be signed in to change notification settings - Fork 14
64 lines (47 loc) · 2.43 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
name: Integration Tests
on:
pull_request:
paths-ignore:
- "**.md"
- "**.txt"
- "examples/**"
branches:
- main
jobs:
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Docker Compose Up
run: docker compose up --build -d
- name: Datagen Test Version
run: docker exec datagen datagen --version
- name: Produce to Kafka from SQL Schema in JSON Format
run: docker exec datagen datagen -s /tests/products.sql -f json -n 3 --record-size 100 -d -p sql
- name: Produce to Kafka from JSON Schema in JSON Format
run: docker exec datagen datagen -s /tests/schema.json -f json -n 3 --record-size 100 -d
- name: Produce to Kafka from Avro Schema in JSON Format
run: docker exec datagen datagen -s /tests/schema.avsc -f json -n 3 --record-size 100 -d
# - name: Produce to Kafka from SQL Schema in Avro Format
# run: docker exec datagen datagen -s /tests/products.sql -f avro -n 3 --record-size 100 -d -w 100
- name: Produce to Kafka from JSON Schema in Avro Format
run: docker exec datagen datagen -s /tests/schema.json -f avro -n 3 --record-size 100 -d -w 100 -p json
- name: Produce to Kafka from Avro Schema in Avro Format
run: docker exec datagen datagen -s /tests/schema.avsc -f avro -n 3 --record-size 100 -d -w 100 -p avro
# - name: Clean Kafka topic
# run: docker exec datagen datagen -s /tests/products.sql -f json -d --clean
- name: Clean Kafka topic with prefix
run: docker exec datagen datagen -s /tests/schema.json -f avro -d --clean --prefix json
- name: Clean Kafka topic and schema registry
run: docker exec datagen datagen -s /tests/schema.avsc -f avro -d --clean --prefix avro
# Postgres tests
- name: Produce data to Postgres with Faker.js
run: docker exec datagen datagen -s /tests/products.sql -f postgres -n 3
- name: Produce data to Postgres with multiple tables
run: docker exec datagen datagen -s /tests/schema2.sql -f postgres -n 3 -rs 1000
- name: Produce data to MySQL with Faker.js
run: docker exec datagen datagen -s /tests/mysql-products.sql -f mysql -n 3
- name: Produce data to MySQL with multiple tables
run: docker exec datagen datagen -s /tests/mysql-schema.sql -f mysql -n 3 -rs 1000
- name: Docker Compose Down
run: docker compose down -v