We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2b0cb9 commit 81113bcCopy full SHA for 81113bc
.github/workflows/test.yaml
@@ -87,3 +87,31 @@ jobs:
87
run: |
88
cd test-project
89
spin build
90
+
91
+ - name: Test the application
92
+ run: |
93
+ cd test-project
94
+ spin up &
95
+ SPIN_PID=$!
96
97
+ echo "Waiting for Spin to start..."
98
99
+ for i in {1..5}; do
100
+ STATUS=$(curl -o /dev/null -s -w "%{http_code}" http://127.0.0.1:3000)
101
102
+ if [ "$STATUS" -eq 200 ]; then
103
+ echo "✅ Spin responded with 200 on attempt $i"
104
+ break
105
+ fi
106
107
+ echo "Attempt $i: status $STATUS, retrying in 2s..."
108
+ sleep 2
109
+ done
110
111
+ kill $SPIN_PID
112
113
+ if [ "$STATUS" -ne 200 ]; then
114
+ echo "❌ Application failed to return 200 after 5 attempts"
115
+ exit 1
116
117
0 commit comments