Skip to content

Commit

Permalink
ci: install kafka on ci & update your_program
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-gang committed Sep 5, 2024
1 parent f4b9a4e commit e053a5c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ jobs:
with:
go-version: 1.22.x

- name: Install Kafka
run: |
wget --progress=dot:giga https://dlcdn.apache.org/kafka/3.8.0/kafka_2.13-3.8.0.tgz
tar -xzf kafka_2.13-3.8.0.tgz
sudo mv kafka_2.13-3.8.0/ /usr/local/kafka
export PATH=$PATH:/usr/local/kafka/bin
- name: Set up Python
uses: actions/setup-python@v1
with:
Expand Down
7 changes: 2 additions & 5 deletions internal/test_helpers/pass_all/your_program.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/sh
echo "Starting Kafka using KRaft (Kafka Raft Metadata)"
cd /tmp
rm -rf /tmp/kafka-logs /tmp/zookeeper /tmp/kraft-combined-logs
cd /Users/ryang/Developer/tmp/kafka/kafka_2.13-3.8.0
# For fresh start
# KAFKA_CLUSTER_ID="$(./bin/kafka-storage.sh random-uuid)"
# ./bin/kafka-storage.sh format -t $KAFKA_CLUSTER_ID -c config/kraft/server.properties
./bin/kafka-server-start.sh config/kraft/server.properties --override log.dirs=/Users/ryang/Developer/work/course-testers/kafka-tester/internal/test_helpers/pass_all/kraft-combined-logs > /dev/null 2>&1
# /kafka/bin/kafka-storage.sh format -t $KAFKA_CLUSTER_ID -c config/kraft/server.properties
/usr/local/kafka/bin/kafka-server-start.sh config/kraft/server.properties --override log.dirs=./internal/test_helpers/pass_all/kraft-combined-logs > /dev/null 2>&1

0 comments on commit e053a5c

Please sign in to comment.