File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -15,13 +15,37 @@ jobs:
1515 name : Run .NET Unit Tests
1616 runs-on : ubuntu-latest
1717
18+ services :
19+ azurite :
20+ image : mcr.microsoft.com/azure-storage/azurite
21+ options : >
22+ --health-cmd "curl -f http://127.0.0.1:10000 || exit 1"
23+ --health-interval 5s
24+ --health-retries 10
25+ --health-timeout 5s
26+ --health-start-period 15s
27+ -p 10000:10000
28+ -p 10001:10001
29+ -p 10002:10002
30+
1831
1932 steps :
2033 - name : Checkout Repository
2134 uses : actions/checkout@v4
2235 with :
2336 submodules : ' true'
2437
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
48+
2549 - name : Setup .NET
2650 uses : actions/setup-dotnet@v4
2751 with :
You can’t perform that action at this time.
0 commit comments