Skip to content

Commit ea9f7e4

Browse files
committed
feat: 7723-testing fix 22
1 parent 986ad68 commit ea9f7e4

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

.github/workflows/dotnet-tests.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,11 @@ jobs:
1515
name: Run .NET Unit Tests
1616
runs-on: ubuntu-latest
1717

18+
1819
services:
1920
azurite:
2021
image: mcr.microsoft.com/azure-storage/azurite
21-
options: >
22-
--health-cmd "curl -f http://127.0.0.1:10000/devstoreaccount1 || exit 1"
23-
--health-interval 5s
24-
--health-retries 10
25-
--health-timeout 5s
26-
--health-start-period 15s
27-
-p 10000:10000/tcp
28-
-p 10001:10001/tcp
29-
-p 10002:10002/tcp
22+
options: --name azurite-storage
3023

3124

3225
steps:
@@ -35,16 +28,8 @@ jobs:
3528
with:
3629
submodules: 'true'
3730

38-
- name: Wait for Azurite to Start
39-
run: |
40-
echo "Waiting for Azurite to be available..."
41-
for i in {1..10}; do
42-
curl -s http://127.0.0.1:10000/devstoreaccount1 && echo "Azurite is up!" && exit 0
43-
echo "Azurite not available yet. Retrying in 5s..."
44-
sleep 5
45-
done
46-
echo "Azurite failed to start!"
47-
exit 1
31+
- name: Start Azurite with --skipApiVersionCheck
32+
run: docker exec azurite-storage azurite --silent --skipApiVersionCheck
4833

4934
- name: Setup .NET
5035
uses: actions/setup-dotnet@v4

0 commit comments

Comments
 (0)