File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -38,32 +38,31 @@ jobs:
3838 id : edge
3939 continue-on-error : true
4040 run : mvn -ntp test -Dtest=EdgeCaseTest || echo "Edge case test failed but ignored"
41- exit 0
42-
41+
4342 # 🧮 Scoring and conditional failure
4443 - name : Calculate and Report Points
4544 run : |
4645 POINTS=0
4746 MAX=3
48-
47+
4948 if [ "${{ steps.compile.outcome }}" == "success" ]; then
5049 POINTS=$((POINTS + 1))
5150 else
5251 echo "❌ Compilation failed"
53- exit 1
5452 fi
55-
53+
5654 if [ "${{ steps.basic.outcome }}" == "success" ]; then
5755 POINTS=$((POINTS + 1))
5856 else
5957 echo "❌ Basic tests failed"
60- exit 1
6158 fi
62-
59+
6360 if [ "${{ steps.edge.outcome }}" == "success" ]; then
6461 POINTS=$((POINTS + 1))
62+ else
63+ echo "⚠️ Edge case tests failed (optional)"
6564 fi
66-
65+
6766 echo "Points ${POINTS}/${MAX}"
6867 exit 0
6968 ai_feedback :
You can’t perform that action at this time.
0 commit comments