Skip to content

Commit

Permalink
Move insta-ingration.yaml back to top level, use version 0.11.11
Browse files Browse the repository at this point in the history
  • Loading branch information
pflooky committed Oct 16, 2024
1 parent 2f8c2aa commit 9aac4f3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
id: tests
uses: data-catering/insta-integration@v1
with:
configuration_file: misc/insta-integration/insta-integration.yaml
data_caterer_version: 0.11.11
- name: Print results
run: |
echo "Records generated: ${{ steps.tests.outputs.num_records_generated }}"
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,16 @@ kafka("my_kafka", "localhost:29092")
#### But I want the same `account_id` to show in Postgres and Kafka

```scala
val postgresTask = postgres("customer_postgres", "jdbc:postgresql://localhost:5432/customer")
.schema(field.name("account_id").regex("ACC[0-9]{10}"))

val kafkaTask = kafka("my_kafka", "localhost:29092")
.topic("account-topic")
.schema(...)

val postgresTask = postgres("customer_postgres", "jdbc:postgresql://localhost:5432/customer")
.schema(field.name("account_id").regex("ACC[0-9]{10}"))

plan.addForeignKeyRelationship(
kafkaTask, List("account_id"),
List(postgresTask -> List("account_id"))
postgresTask, List("account_id"),
List(kafkaTask -> List("account_id"))
)
```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
services:
- name: postgres
data: ../../app/src/test/resources/sample/sql/postgres
data: app/src/test/resources/sample/sql/postgres
run:
- command: java -jar ../../app/build/libs/data-caterer.jar
- command: java -jar app/build/libs/data-caterer.jar
env:
PLAN_FILE_PATH: ../../app/src/test/resources/sample/plan/account-balance-transaction-plan.yaml
TASK_FOLDER_PATH: ../../app/src/test/resources/sample/task
APPLICATION_CONFIG_PATH: ../../app/src/main/resources/application.conf
PLAN_FILE_PATH: app/src/test/resources/sample/plan/account-balance-transaction-plan.yaml
TASK_FOLDER_PATH: app/src/test/resources/sample/task
APPLICATION_CONFIG_PATH: app/src/main/resources/application.conf
generateFirst: false
test:
validation:
Expand Down

0 comments on commit 9aac4f3

Please sign in to comment.