Skip to content

Commit 850c2cc

Browse files
author
Guilherme Biff Zarelli
authored
Merge pull request #14 from helpdeveloper/fix-ci
fix: ci
2 parents 20f7e55 + 00fc632 commit 850c2cc

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/maven.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,25 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
17+
1718
- name: Set up JDK 17
18-
uses: actions/setup-java@v1
19+
uses: actions/setup-java@v3
1920
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 }}

0 commit comments

Comments
 (0)