From aabd39d5ce953ce1bf3fe742f057a7fccad31d2c Mon Sep 17 00:00:00 2001 From: Jeremy Norris Date: Sun, 5 Sep 2021 11:28:33 -0500 Subject: [PATCH] Switch to setup-java@v2. --- .github/workflows/maven.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 9eb68181..cc430ccb 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -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 @@ -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