File tree 5 files changed +24
-3
lines changed
src/test/groovy/com/github/datagenerator 5 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 19
19
with :
20
20
java-version : ' 11'
21
21
distribution : ' adopt'
22
+ - name : Cache Maven packages
23
+ uses : actions/cache@v2
24
+ with :
25
+ path : ~/.m2
26
+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
27
+ restore-keys : ${{ runner.os }}-m2
22
28
- name : Run Build
23
- run : mvn -B clean install
29
+ run : mvn --batch-mode clean install
Original file line number Diff line number Diff line change @@ -17,10 +17,16 @@ jobs:
17
17
with :
18
18
java-version : ' 11'
19
19
distribution : ' adopt'
20
+ - name : Cache Maven packages
21
+ uses : actions/cache@v2
22
+ with :
23
+ path : ~/.m2
24
+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
25
+ restore-keys : ${{ runner.os }}-m2
20
26
- name : Maven Build
21
27
run : mvn clean install
22
28
- name : Publish package
23
- run : mvn --batch-mode deploy
29
+ run : mvn --batch-mode clean install
24
30
env :
25
31
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
26
32
- name : Set up Docker Buildx
Original file line number Diff line number Diff line change 1
- # Dockerfile
2
1
FROM adoptopenjdk:11-jre-hotspot
3
2
ARG JAR_FILE=target/*.jar
4
3
COPY ${JAR_FILE} app.jar
Original file line number Diff line number Diff line change 98
98
</execution >
99
99
</executions >
100
100
</plugin >
101
+ <plugin >
102
+ <groupId >org.apache.maven.plugins</groupId >
103
+ <artifactId >maven-surefire-plugin</artifactId >
104
+ <version >2.18.1</version >
105
+ <configuration >
106
+ <includes >
107
+ <include >**/*Test*.*</include >
108
+ </includes >
109
+ </configuration >
110
+ </plugin >
101
111
</plugins >
102
112
</build >
103
113
File renamed without changes.
You can’t perform that action at this time.
0 commit comments