File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build and run unit tests
2+ on :
3+ push :
4+ pull_request :
5+
6+ # Allows to run this workflow manually from the Actions tab
7+ workflow_dispatch :
8+
9+ jobs :
10+ publish :
11+ runs-on : ubuntu-latest
12+ permissions :
13+ contents : read
14+ steps :
15+ - uses : actions/checkout@v4
16+ - uses : actions/setup-java@v4
17+ with :
18+ java-version : ' 11'
19+ distribution : ' adopt'
20+ - name : Build and run unit tests
21+ run : mvn --batch-mode clean install
Original file line number Diff line number Diff line change 7777 <version .gpg.plugin>1.5</version .gpg.plugin>
7878 <version .install.plugin>2.5.2</version .install.plugin>
7979 <version .jacoco.plugin>0.8.10</version .jacoco.plugin>
80+ <version .japicmp.plugin>0.20.0</version .japicmp.plugin>
8081 <version .javadoc.plugin>3.4.0</version .javadoc.plugin>
8182 <version .source.plugin>3.2.1</version .source.plugin>
8283 <version .jar.plugin>3.3.0</version .jar.plugin>
393394 <artifactId >jacoco-maven-plugin</artifactId >
394395 <version >${version.jacoco.plugin} </version >
395396 </plugin >
397+ <plugin >
398+ <groupId >com.github.siom79.japicmp</groupId >
399+ <artifactId >japicmp-maven-plugin</artifactId >
400+ <version >${version.japicmp.plugin} </version >
401+ </plugin >
396402 <plugin >
397403 <groupId >org.sonatype.plugins</groupId >
398404 <artifactId >nexus-staging-maven-plugin</artifactId >
457463 </execution >
458464 </executions >
459465 </plugin >
466+
467+ <plugin >
468+ <groupId >com.github.siom79.japicmp</groupId >
469+ <artifactId >japicmp-maven-plugin</artifactId >
470+ <configuration >
471+ <!-- Old and new versions are not specified, so we compare the latest released version with the build artefact -->
472+ <parameter >
473+ <!-- Break the build in case the semantic versioning is violated -->
474+ <breakBuildBasedOnSemanticVersioning >true</breakBuildBasedOnSemanticVersioning >
475+ <!-- Output only modified classes/methods in the report -->
476+ <onlyModified >true</onlyModified >
477+ </parameter >
478+ </configuration >
479+ <executions >
480+ <execution >
481+ <phase >verify</phase >
482+ <goals >
483+ <goal >cmp</goal >
484+ </goals >
485+ </execution >
486+ </executions >
487+ </plugin >
460488 </plugins >
461489 </build >
462490
You can’t perform that action at this time.
0 commit comments