Skip to content

Commit 601318f

Browse files
Enable Spotless verification for Android Port and consolidate 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` 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 a4aada4 commit 601318f

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
@@ -134,7 +134,7 @@ fi
134134
run_maven -q -f maven/pom.xml -pl android -am -Dcn1.binaries="$CN1_BINARIES" -P !download-cn1-binaries -T 1C -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -Djava.awt.headless=true clean install "$@"
135135

136136
log "Running Spotless verification..."
137-
ARTIFACTS_DIR="${ARTIFACTS_DIR:-../artifacts}"
137+
ARTIFACTS_DIR="${ARTIFACTS_DIR:-artifacts}"
138138
mkdir -p "$ARTIFACTS_DIR" || true
139139
SPOTLESS_REPORT="$ARTIFACTS_DIR/spotless-report.md"
140140
SPOTLESS_LOG="$ARTIFACTS_DIR/spotless.log"

0 commit comments

Comments
 (0)