Skip to content

Commit

Permalink
Switch to setup-java@v2.
Browse files Browse the repository at this point in the history
  • Loading branch information
norrisjeremy committed Sep 5, 2021
1 parent e8717a0 commit aabd39d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [8, 11, 16]
java: ['8', '11', '16']
steps:
- uses: actions/checkout@v2
- name: Cache local Maven repository
Expand All @@ -27,15 +27,19 @@ jobs:
restore-keys: |
${{ runner.os }}-${{ matrix.java }}-maven-
- name: Set up build JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: 16
distribution: 'zulu'
java-version: '16'
check-latest: true
- name: Build with Maven
run: mvn -B -DskipTests=true package --file pom.xml
- name: Set up test JDK ${{ matrix.java }}
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
check-latest: true
- name: Test with Maven
run: mvn -B -P coverage verify -Denforcer.skip=true -DskipITs=false --file pom.xml
- uses: actions/upload-artifact@v2
Expand Down

0 comments on commit aabd39d

Please sign in to comment.