File tree Expand file tree Collapse file tree 1 file changed +4
-19
lines changed
Expand file tree Collapse file tree 1 file changed +4
-19
lines changed Original file line number Diff line number Diff 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 :
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
You can’t perform that action at this time.
0 commit comments