File tree Expand file tree Collapse file tree 3 files changed +41
-1
lines changed
Expand file tree Collapse file tree 3 files changed +41
-1
lines changed Original file line number Diff line number Diff line change @@ -154,10 +154,33 @@ jobs:
154154 compression-level : 6
155155 - name : Upload Android Jacoco coverage report
156156 if : always() && matrix.id == 'default'
157+ id : upload-quality-artifacts
157158 uses : actions/upload-artifact@v4
158159 with :
159160 name : android-jacoco-coverage
160161 path : artifacts/android-coverage-report
161162 if-no-files-found : warn
162163 retention-days : 14
163164 compression-level : 6
165+ - name : Generate quality report summary
166+ if : ${{ always() && matrix.id == 'default' }}
167+ env :
168+ QUALITY_REPORT_TARGET_DIRS : artifacts/android-coverage-report
169+ QUALITY_REPORT_SERVER_URL : ${{ github.server_url }}
170+ QUALITY_REPORT_REPOSITORY : ${{ github.repository }}
171+ QUALITY_REPORT_REF : ${{ github.event.pull_request.head.sha || github.sha }}
172+ JACOCO_REPORT_URL : ${{ steps.upload-quality-artifacts.outputs.artifact-url }}
173+ QUALITY_REPORT_TITLE : " ✅ Android Quality Report"
174+ run : python3 .github/scripts/generate-quality-report.py
175+ - name : Publish quality report comment
176+ if : ${{ github.event_name == 'pull_request' && matrix.id == 'default' }}
177+ uses : actions/github-script@v7
178+ with :
179+ script : |
180+ const { publishQualityComment } = require('./.github/scripts/publish-quality-comment.js');
181+ await publishQualityComment({
182+ github,
183+ context,
184+ core,
185+ marker: '<!-- android-quality-report -->'
186+ });
Original file line number Diff line number Diff line change 3535
3636 <build >
3737 <sourceDirectory >${src.dir} </sourceDirectory >
38+ <plugins >
39+ <plugin >
40+ <groupId >com.diffplug.spotless</groupId >
41+ <artifactId >spotless-maven-plugin</artifactId >
42+ <version >2.43.0</version >
43+ <configuration >
44+ <java >
45+ <includes >
46+ <include >${project.basedir} /../../Ports/Android/src/**/*.java</include >
47+ </includes >
48+ <googleJavaFormat >
49+ <version >1.17.0</version >
50+ </googleJavaFormat >
51+ </java >
52+ </configuration >
53+ </plugin >
54+ </plugins >
3855 </build >
3956
4057 <profiles >
Original file line number Diff line number Diff line change @@ -131,4 +131,4 @@ if [ ! -f "$BUILD_CLIENT" ]; then
131131 fi
132132fi
133133
134- 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 " $@ "
134+ 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 spotless:check " $@ "
You can’t perform that action at this time.
0 commit comments