File tree Expand file tree Collapse file tree 3 files changed +51
-9
lines changed
Expand file tree Collapse file tree 3 files changed +51
-9
lines changed Original file line number Diff line number Diff line change 1+ # This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
2+ # For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path
3+
4+ name : maven-build
5+
6+ on :
7+ pull_request :
8+ branches :
9+ - master
10+
11+ jobs :
12+ build :
13+
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v2
18+ - name : Set up JDK 1.11
19+ uses : actions/setup-java@v1
20+ with :
21+ java-version : 1.11
22+ server-id : github # Value of the distributionManagement/repository/id field of the pom.xml
23+ settings-path : ${{ github.workspace }} # location for the settings.xml file
24+
25+ - name : Build
26+ env :
27+ CODECOV_TOKEN : ${{secrets.CODECOV_TOKEN}}
28+ run : mvn -B package --file pom.xml -Pcoverage -Dsytle.colors=always --errors
29+ - name : Upload coverage to Codecov
30+ uses : codecov/codecov-action@v1
31+ with :
32+ token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 11# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
22# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path
33
4- name : maven
4+ name : maven-release
55
66on :
7- push :
8- branches :
9- - master
10- - ' releases/*'
11- - ' refs/tags/*'
12- pull_request :
13- branches :
14- - master
7+ push :
8+ branches :
9+ - master
10+ - ' releases/*'
11+ - ' refs/tags/*'
1512
1613jobs :
1714 build :
Original file line number Diff line number Diff line change 355355 </goals >
356356 </execution >
357357 </executions >
358+ <configuration >
359+ <sourcepath >${project.build.sourceDirectory} :${project.build.directory} /generated-sources/annotations</sourcepath >
360+ <additionalDependencies >
361+ <additionalDependency >
362+ <groupId >javax.annotation</groupId >
363+ <artifactId >javax.annotation-api</artifactId >
364+ <version >1.3.2</version >
365+ </additionalDependency >
366+
367+ </additionalDependencies >
368+ <doclint >none</doclint >
369+ </configuration >
370+
358371 </plugin >
359372 <plugin >
360373 <groupId >org.sonatype.plugins</groupId >
You can’t perform that action at this time.
0 commit comments