Skip to content

Commit

Permalink
Update to setup-java v2, and use adopt builds
Browse files Browse the repository at this point in the history
  • Loading branch information
cushon authored and Error Prone Team committed Jul 14, 2021
1 parent a997afa commit 687c27a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
- name: 'Set up JDK ${{ matrix.java }}'
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
- name: 'Install'
shell: bash
run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
Expand All @@ -76,9 +77,10 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
- name: 'Set up JDK 8'
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt'
server-id: sonatype-nexus-snapshots
server-username: CI_DEPLOY_USERNAME
server-password: CI_DEPLOY_PASSWORD
Expand All @@ -104,9 +106,10 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
- name: 'Set up JDK 15'
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: 15
distribution: 'adopt'
- name: 'Generate latest docs'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 687c27a

Please sign in to comment.