-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(github): moved test integration to test workflow as a job
- Loading branch information
1 parent
f14b116
commit b11b3e1
Showing
3 changed files
with
39 additions
and
48 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -20,3 +20,41 @@ jobs: | |
|
||
- name: Run Unit Tests | ||
run: cargo test --lib | ||
|
||
integration: | ||
services: | ||
zookeeper: | ||
image: confluentinc/cp-zookeeper:latest | ||
options: >- | ||
--env ZOOKEEPER_CLIENT_PORT=2181 | ||
kafka: | ||
image: confluentinc/cp-kafka:latest | ||
ports: | ||
- 9092:9092 | ||
options: >- | ||
--env KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 | ||
--env KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Create k8s Kind Cluster | ||
uses: helm/[email protected] | ||
with: | ||
cluster_name: "k8scluster" | ||
|
||
- name: Build RPC | ||
run: docker build -t rpc:1.0 -f docker/dockerfile.rpc . | ||
|
||
- name: Load Docker Image | ||
run: kind load docker-image rpc:1.0 --name k8scluster | ||
|
||
- name: Apply main manifest | ||
run: kubectl apply -f test/main.yaml | ||
|
||
- name: Validate controller | ||
run: ./test/expect | ||
|
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