Skip to content

Commit 00fc632

Browse files
author
Guilherme Biff Zarelli
committed
fix: ci
1 parent 8ea6a76 commit 00fc632

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/maven.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,24 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v3
17+
1718
- name: Set up JDK 17
1819
uses: actions/setup-java@v3
1920
with:
2021
distribution: 'zulu'
21-
java-version: 17
22-
cache: 'maven'
23-
- name: Build with Maven
24-
run: ./mvnw -B clean verify coveralls:report -DrepoToken=${{ secrets.COVERALLS_REPO_TOKEN }}
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 }}

0 commit comments

Comments
 (0)