Skip to content

Commit 29e3d82

Browse files
committed
add azurite step to build-validation
1 parent 55f9afe commit 29e3d82

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/build-validation.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)