Skip to content

Commit 3f3e43e

Browse files
authored
Update classroom.yml
1 parent c98f083 commit 3f3e43e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/classroom.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ jobs:
3737
- name: Edge Case Tests
3838
id: edge
3939
continue-on-error: true
40-
run: mvn -ntp test -Dtest=EdgeCaseTest || echo "Edge case test failed but ignored"
40+
run: |
41+
mvn -ntp test -Dtest=EdgeCaseTest
42+
echo "exit_code=$?" >> $GITHUB_ENV
4143
4244
# 🧮 Scoring and conditional failure
4345
- name: Calculate and Report Points
@@ -57,7 +59,7 @@ jobs:
5759
echo "❌ Basic tests failed"
5860
fi
5961

60-
if [ "${{ steps.edge.outcome }}" == "success" ]; then
62+
if [ "$exit_code" -eq 0 ]; then
6163
POINTS=$((POINTS + 1))
6264
else
6365
echo "⚠️ Edge case tests failed (optional)"

0 commit comments

Comments
 (0)