File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -246,6 +246,16 @@ jobs:
246
246
-p 0:5433 -p 0:9042 \
247
247
yugabytedb/yugabyte:2024.1.2.0-b77 bin/yugabyted start --daemon=false
248
248
249
+ - name : Wait for YugabyteDB to start
250
+ run : |
251
+ while true; do
252
+ status=$(docker exec ${{ env.CONTAINER_NAME }} bin/yugabyted status);
253
+ echo $status;
254
+ echo $status | grep Running && break;
255
+ sleep 1;
256
+ done
257
+ shell : bash
258
+
249
259
- name : Get the dynamically assigned ports
250
260
id : get-ports
251
261
run : |
@@ -259,11 +269,11 @@ jobs:
259
269
260
270
- name : Run tests
261
271
env :
262
- CURIO_HARMONYDB_HOSTS : ${{ env.CONTAINER_NAME }} # Use the container's name for DB hosts
272
+ # CURIO_HARMONYDB_HOSTS: ${{ env.CONTAINER_NAME }} # Use the container's name for DB hosts
263
273
CURIO_HARMONYDB_PORT : ${{ steps.get-ports.outputs.postgres_port }} # Use the dynamically allocated PostgreSQL port
264
274
CURIO_INDEXDB_PORT : ${{ steps.get-ports.outputs.ycql_port }} # Use the dynamically allocated YCQL port
265
275
run : |
266
- echo "Using YugabyteDB Container Name: $CURIO_HARMONYDB_HOSTS"
276
+ # echo "Using YugabyteDB Container Name: $CURIO_HARMONYDB_HOSTS"
267
277
echo "Using Postgres Port: $CURIO_HARMONYDB_PORT"
268
278
echo "Using YCQL Port: $CURIO_INDEXDB_PORT"
269
279
# Run the tests using the YugabyteDB container
You can’t perform that action at this time.
0 commit comments