File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,12 +94,38 @@ jobs:
9494 # Give additional time for gRPC service to fully initialize after port is open
9595 sleep 5
9696
97+ - name : Initialize Azurite (Azure Blob Storage Emulator)
98+ run : docker run --name azurite -p 10000:10000 -d mcr.microsoft.com/azure-storage/azurite azurite-blob --blobHost 0.0.0.0
99+
100+ - name : Wait for Azurite to be ready
101+ run : |
102+ echo "Waiting for Azurite to be ready on port 10000..."
103+ MAX_WAIT_SECONDS=60
104+ attempt=0
105+ while ! (echo > /dev/tcp/localhost/10000) 2>/dev/null; do
106+ attempt=$((attempt + 1))
107+ if [ $attempt -ge $MAX_WAIT_SECONDS ]; then
108+ echo "ERROR: Azurite not ready after $MAX_WAIT_SECONDS seconds"
109+ echo "Docker container status:"
110+ docker ps -a
111+ echo "Container logs:"
112+ docker logs azurite 2>&1 | tail -50
113+ exit 1
114+ fi
115+ echo "Attempt $attempt/$MAX_WAIT_SECONDS - waiting for Azurite..."
116+ sleep 1
117+ done
118+ echo "Azurite is ready on port 10000"
119+
97120 - name : Integration Tests with Gradle
98121 run : ./gradlew integrationTest || echo "TEST_FAILED=true" >> $GITHUB_ENV
99122 continue-on-error : true
100123
101124 - name : Kill Durable Task Emulator
102125 run : docker kill durabletask-emulator
126+
127+ - name : Kill Azurite
128+ run : docker kill azurite
103129
104130 - name : Upload Durable Task Emulator Logs
105131 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments