Skip to content

Commit fd452e8

Browse files
authored
Merge pull request #247 from orionrobots/copilot/fix-243
Make BDD tests exit code gating in staging workflow
2 parents a825565 + 1f3fde6 commit fd452e8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/on_call_staging_test.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,19 @@ jobs:
5656
echo "## BDD Test Results" >> $GITHUB_STEP_SUMMARY
5757
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
5858
docker compose -f docker-compose.yml -f docker-compose.ci.yml run test 2>&1 | tee bdd_output.txt
59-
bdd_exit_code=$?
59+
bdd_result=$?
6060
cat bdd_output.txt >> $GITHUB_STEP_SUMMARY
6161
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
6262
63-
if [ $bdd_exit_code -eq 0 ]; then
63+
if [ $bdd_result -eq 0 ]; then
6464
echo "✅ BDD tests passed" >> $GITHUB_STEP_SUMMARY
6565
else
66-
echo "⚠️ BDD tests failed (this is expected as step definitions are not yet implemented)" >> $GITHUB_STEP_SUMMARY
66+
echo "❌ BDD tests failed" >> $GITHUB_STEP_SUMMARY
67+
exit_code=1
6768
fi
6869
6970
# Stop the service regardless of test outcome
7071
docker compose -f docker-compose.yml -f docker-compose.ci.yml stop staging
7172
72-
# Exit with the test result (don't fail on BDD tests for now)
73+
# Exit with the test result
7374
exit $exit_code

0 commit comments

Comments
 (0)