Skip to content

Commit cdf9c82

Browse files
committed
fix: fix
Signed-off-by: dhmlau <dhmlau@ca.ibm.com>
1 parent 434158c commit cdf9c82

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/continuous-integration.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,16 @@ jobs:
2929
run: |
3030
docker run -d --name db2 -e ACCEPT_EULA=TRUE -p 60000:50000 -v db2data:/db2data ibmcom/db2
3131
- name: Wait for DB2 to be ready
32-
run: sleep 1000
32+
run: |
33+
echo "Waiting for DB2 to start..."
34+
for i in {1..100}; do
35+
if docker exec db2 su - db2inst1 -c 'db2 connect to sample' > /dev/null 2>&1; then
36+
echo "DB2 is ready!"
37+
break
38+
fi
39+
echo "Still waiting... ($i)"
40+
sleep 5
41+
done
3342
- name: Use Node.js ${{ matrix.node-version }}
3443
uses: actions/setup-node@v4
3544
with:

0 commit comments

Comments
 (0)