We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c98f083 commit 3f3e43eCopy full SHA for 3f3e43e
.github/workflows/classroom.yml
@@ -37,7 +37,9 @@ jobs:
37
- name: Edge Case Tests
38
id: edge
39
continue-on-error: true
40
- run: mvn -ntp test -Dtest=EdgeCaseTest || echo "Edge case test failed but ignored"
+ run: |
41
+ mvn -ntp test -Dtest=EdgeCaseTest
42
+ echo "exit_code=$?" >> $GITHUB_ENV
43
44
# 🧮 Scoring and conditional failure
45
- name: Calculate and Report Points
@@ -57,7 +59,7 @@ jobs:
57
59
echo "❌ Basic tests failed"
58
60
fi
61
- if [ "${{ steps.edge.outcome }}" == "success" ]; then
62
+ if [ "$exit_code" -eq 0 ]; then
63
POINTS=$((POINTS + 1))
64
else
65
echo "⚠️ Edge case tests failed (optional)"
0 commit comments