Skip to content

Commit

Permalink
fix: add exit code to scenario code suite to reflec results
Browse files Browse the repository at this point in the history
  • Loading branch information
lakkeger committed Jul 24, 2024
1 parent c9fb66f commit 913e6e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/scenario-test/controller.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash
TEMPLATE_ID="$1"
ALL_RESULTS=" ================== 📋 TEST REPORT ==================\n"
EXIT_CODE=0

set +e

Expand All @@ -9,6 +10,7 @@ function reportAllScenarioResults {
RES="✅ Passed:\t"
else
RES="❌ Failed:\t"
EXIT_CODE=1
fi
ALL_RESULTS="$ALL_RESULTS\n$RES'${1}'"
}
Expand Down Expand Up @@ -69,4 +71,5 @@ for SCENARIO in ${SCENARIOS[@]}; do
echo
done

echo -e "$ALL_RESULTS"
echo -e "${ALL_RESULTS}"
exit ${EXIT_CODE}

0 comments on commit 913e6e6

Please sign in to comment.