Skip to content

Commit b1d6a59

Browse files
Enable Spotless verification for Android Port and improve reporting
- Added `spotless-maven-plugin` to `maven/android/pom.xml` configured for `Ports/Android/src`. - Updated `scripts/build-android-port.sh` to run `spotless:check` with verbose logging and capture results to a report file. - Modified `scripts/lib/cn1ss.sh` and `scripts/run-android-instrumentation-tests.sh` to append the Spotless report to the main Android status comment. - Updated `scripts/run-android-instrumentation-tests.sh` to fail the build if Spotless checks failed, after reporting is complete. - Updated `.github/workflows/scripts-android.yml` and reporting scripts to suppress noisy "missing report" warnings and correctly collect test artifacts.
1 parent 1ff6db8 commit b1d6a59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build-android-port.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ else
150150
echo "<details><summary>Spotless Failure Log</summary>"
151151
echo ""
152152
echo "\`\`\`"
153-
tail -n 20 "$SPOTLESS_LOG"
153+
grep "\[ERROR\]" "$SPOTLESS_LOG" | head -n 100
154154
echo "\`\`\`"
155155
echo ""
156156
echo "</details>"

0 commit comments

Comments
 (0)