Skip to content

Commit c98f083

Browse files
authored
Update classroom.yml
1 parent cb321ff commit c98f083

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/classroom.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)