File tree Expand file tree Collapse file tree 1 file changed +48
-17
lines changed Expand file tree Collapse file tree 1 file changed +48
-17
lines changed Original file line number Diff line number Diff line change 11name : Build
22
3+ env :
4+ # https://github.com/actions/virtual-environments/issues/1499
5+ MAVEN_CLI_OPTS : ' -ntp --batch-mode --errors --fail-at-end --show-version -Dmaven.wagon.httpconnectionManager.ttlSeconds=60 -Dmaven.wagon.http.retryHandler.count=3 -Dstyle.color=always'
6+
37on :
4- pull_request :
5- merge_group :
6- push :
8+ # allow to manual run the action
9+ workflow_dispatch : {}
10+ pull_request : {}
11+ merge_group : {}
12+ push :
13+ branches :
14+ - develop
15+ tags :
16+ - ' *'
17+
18+ permissions :
19+ contents : write
20+ # For junit report
21+ checks : write
22+ pull-requests : write
723
824jobs :
9- build :
10- name : Build
11- runs-on : ubuntu-latest
12- steps :
13- - uses : actions/checkout@v4
14-
15- - name : Set up JDK 17
16- uses : actions/setup-java@v4
17- with :
18- distribution : ' temurin'
19- java-version : 17
20-
21- - name : Build with Maven
22- run : ./mvnw clean package --batch-mode
25+ build :
26+ name : Build
27+ runs-on : ubuntu-latest
28+ steps :
29+ - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
30+
31+ - name : Set up JDK 17
32+ uses : actions/setup-java@v4
33+ with :
34+ distribution : ' temurin'
35+ java-version : 17
36+
37+ - name : Build with Maven
38+ run : |
39+ ./mvnw ${MAVEN_CLI_OPTS} clean verify
40+ ./mvnw javadoc:javadoc
41+
42+ - name : Publish Test Report
43+ uses : mikepenz/action-junit-report@v4
44+ if : success() || failure() # always run even if the previous step fails
45+ with :
46+ report_paths : ' **/target/*-reports/TEST-*.xml'
47+
48+ - name : Upload coverage to Codecov
49+ 50+ with :
51+ file : " ${{ github.workspace }}/spi/target/jacoco.xml"
52+ token : ${{ secrets.CODECOV_TOKEN }}
53+ fail_ci_if_error : ${{ !startsWith(github.event.ref, 'refs/tags/v') }}
You can’t perform that action at this time.
0 commit comments