Skip to content

Commit 6bbd85c

Browse files
committed
ci: run test suites separately for better reporting
1 parent a1188f2 commit 6bbd85c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/classroom-autograding.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,14 @@ jobs:
4040
run: |
4141
cd ${{ env.STUDENT_REPO_PATH }}
4242
chmod +x mvnw
43-
./mvnw test -B
43+
# Extract module names from pom.xml
44+
MODULES=$(xmllint --xpath "//modules/module/text()" pom.xml)
45+
for dir in $MODULES; do
46+
if [ -d "$dir" ]; then
47+
echo "Running tests for $dir..."
48+
./mvnw test -B --projects $dir || true
49+
fi
50+
done
4451
continue-on-error: true
4552

4653
- name: Parse test results

0 commit comments

Comments
 (0)