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+ # This workflow will build a Java project with Maven
2+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+ name : Java CI with Maven
5+
6+ on :
7+ push :
8+ branches : [ master ]
9+ pull_request :
10+ branches : [ master ]
11+
12+ jobs :
13+ build :
14+
15+ runs-on : ubuntu-latest
16+
17+ steps :
18+ - uses : actions/checkout@v2
19+ - name : Set up JDK 1.8
20+ uses : actions/setup-java@v1
21+ with :
22+ java-version : 1.8
23+ - name : Build with Maven
24+ env :
25+ TEST_CONFIGURATION_ACCESS_TOKEN : ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }}
26+ run : mvn -B package --file pom.xml
Original file line number Diff line number Diff line change 11SRC =./src
22
33.PHONY : all
4- all : format build test
4+ all : format test
55
66.PHONY : fix
77fix :
@@ -15,10 +15,6 @@ format: fix
1515format_tests :
1616 find $(SRC ) /test -iname " *.java" -exec java -jar tools/google-java-format-1.8-all-deps.jar --aosp --replace {} \;
1717
18- .PHONY : build
19- build :
20- mvn compile
21-
2218.PHONY : test
2319test :
24- mvn test
20+ mvn -B package --file pom.xml
Original file line number Diff line number Diff line change 134134 </execution >
135135 </executions >
136136 </plugin >
137- <plugin >
138- <groupId >org.apache.maven.plugins</groupId >
139- <artifactId >maven-javadoc-plugin</artifactId >
140- <version >2.10.4</version >
141- <executions >
142- <execution >
143- <id >attach-javadocs</id >
144- <goals >
145- <goal >jar</goal >
146- </goals >
147- </execution >
148- </executions >
149- </plugin >
150137 <plugin >
151138 <groupId >org.apache.maven.plugins</groupId >
152139 <artifactId >maven-source-plugin</artifactId >
You can’t perform that action at this time.
0 commit comments