File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,25 @@ jobs:
13
13
build :
14
14
runs-on : ubuntu-latest
15
15
steps :
16
- - uses : actions/checkout@v2
16
+ - uses : actions/checkout@v3
17
+
17
18
- name : Set up JDK 17
18
- uses : actions/setup-java@v1
19
+ uses : actions/setup-java@v3
19
20
with :
20
- java-version : 17
21
- - name : Build with Maven
22
- run : ./mvnw -B verify coveralls:report -DrepoToken=${{ secrets.COVERALLS_REPO_TOKEN }} --file pom.xml
21
+ distribution : ' zulu'
22
+ java-version : ' 17'
23
+ cache : maven
24
+
25
+ - name : Build Package and install local with Maven
26
+ run : mvn --batch-mode --update-snapshots install -Dmaven.test.skip -Dmutation.skip=true
27
+
28
+ - name : Cache local Maven repository
29
+ uses : actions/cache@v3
30
+ with :
31
+ path : ~/.m2/repository
32
+ key : ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
33
+ restore-keys : |
34
+ ${{ runner.os }}-maven-
35
+
36
+ - name : Run Tests
37
+ run : mvn --batch-mode verify coveralls:report -DrepoToken=${{ secrets.COVERALLS_REPO_TOKEN }}
You can’t perform that action at this time.
0 commit comments