-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add rust ci * patch rdkafka in arroyo as well * run kafka for rust ci
- Loading branch information
Showing
4 changed files
with
54 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Rust | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- release/** | ||
|
||
pull_request: | ||
|
||
jobs: | ||
lint: | ||
name: "Linting" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
name: Checkout code | ||
- name: Run linter | ||
run: cd rust-arroyo && cargo check && cargo fmt --check | ||
|
||
test: | ||
name: "Tests" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
name: Checkout code | ||
- name: Run Zookeeper and Kafka | ||
run: sh scripts/run-kafka.sh | ||
- name: Run tests | ||
run: cd rust-arroyo && cargo test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/sh | ||
|
||
docker run \ | ||
--name sentry_zookeeper \ | ||
-d --network host \ | ||
-e ZOOKEEPER_CLIENT_PORT=2181 \ | ||
confluentinc/cp-zookeeper:6.2.0 | ||
|
||
docker run \ | ||
--name sentry_kafka \ | ||
-d --network host \ | ||
-e KAFKA_ZOOKEEPER_CONNECT=127.0.0.1:2181 \ | ||
-e KAFKA_LISTENERS=INTERNAL://0.0.0.0:9093,EXTERNAL://0.0.0.0:9092 \ | ||
-e KAFKA_ADVERTISED_LISTENERS=INTERNAL://127.0.0.1:9093,EXTERNAL://127.0.0.1:9092 \ | ||
-e KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT \ | ||
-e KAFKA_INTER_BROKER_LISTENER_NAME=INTERNAL \ | ||
-e KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1 \ | ||
confluentinc/cp-kafka:6.2.0 |