We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 434158c commit cdf9c82Copy full SHA for cdf9c82
1 file changed
.github/workflows/continuous-integration.yml
@@ -29,7 +29,16 @@ jobs:
29
run: |
30
docker run -d --name db2 -e ACCEPT_EULA=TRUE -p 60000:50000 -v db2data:/db2data ibmcom/db2
31
- name: Wait for DB2 to be ready
32
- run: sleep 1000
+ 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
42
- name: Use Node.js ${{ matrix.node-version }}
43
uses: actions/setup-node@v4
44
with:
0 commit comments