Add dependency check for e2e tests (#1240)
This commit is contained in:
parent
79a3c5af8e
commit
440838c0e9
5
.github/workflows/diff.yaml
vendored
5
.github/workflows/diff.yaml
vendored
@ -229,6 +229,11 @@ jobs:
|
|||||||
# branches and tags. (default: 1)
|
# branches and tags. (default: 1)
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Check e2e service dependencies
|
||||||
|
run: |
|
||||||
|
cd tests/e2e
|
||||||
|
./dependency_check.sh
|
||||||
|
|
||||||
- name: Build release binaries
|
- name: Build release binaries
|
||||||
run: |
|
run: |
|
||||||
# Activate toolchain.
|
# Activate toolchain.
|
||||||
|
14
tests/e2e/dependency_check.sh
Executable file
14
tests/e2e/dependency_check.sh
Executable file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
check_service_in_use() {
|
||||||
|
if docker ps --format "{{.Names}}" | grep -q "$1"; then
|
||||||
|
echo "$2 is successfully working"
|
||||||
|
else
|
||||||
|
echo "$2 needs to be available"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
check_service_in_use "kafka" "Kafka service"
|
||||||
|
check_service_in_use "pulsar" "Pulsar service"
|
Loading…
Reference in New Issue
Block a user