File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change 3737 run : chmod +x ./gradlew
3838
3939 - name : Build with Gradle Wrapper
40- run : ./gradlew build
40+ run : ./gradlew build --info
41+
42+ - name : Run tests with detailed output
43+ run : ./gradlew test --info --continue --stacktrace
44+ continue-on-error : false
45+
46+ - name : Print test results on failure
47+ if : failure()
48+ run : |
49+ echo "=== Test Failures ==="
50+ find . -name "TEST-*.xml" -exec echo "File: {}" \; -exec cat {} \; || true
51+ echo "=== Build Reports ==="
52+ find build/reports/tests -name "index.html" -exec echo "Test report location: {}" \; || true
53+ echo "=== Test Stdout/Stderr ==="
54+ find build/test-results -name "*.xml" -exec echo "=== {} ===" \; -exec cat {} \; || true
55+
56+ - name : Upload test reports
57+ uses : actions/upload-artifact@v4
58+ if : always()
59+ with :
60+ name : test-reports
61+ path : |
62+ build/reports/tests/
63+ build/test-results/
64+ retention-days : 30
4165
4266 - name : Run quality checks (non-breaking)
4367 run : ./gradlew check -x test
You can’t perform that action at this time.
0 commit comments