Skip to content

Commit

Permalink
Update workflow to cancel previous runs and upgrade to setup-java@v2.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 367692521
  • Loading branch information
java-team-github-bot authored and Guice Team committed Apr 9, 2021
1 parent 6fc8ad4 commit 053d0a5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@ jobs:
name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}

steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'
- name: 'Cache local Maven repository'
uses: actions/cache@v2
with:
Expand All @@ -46,9 +51,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup JDK
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: 11
java-version: ${{ matrix.java }}
distribution: 'zulu'
server-id: google-snapshots
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
Expand Down

0 comments on commit 053d0a5

Please sign in to comment.