Skip to content

Commit

Permalink
Use GitHub Actions checkout/setup-java v3
Browse files Browse the repository at this point in the history
  • Loading branch information
andrebrait committed Jun 9, 2022
1 parent 8c44170 commit 50fcb27
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,14 @@ jobs:
- 17
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: ${{ matrix.java }}
check-latest: true
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-
cache: maven
- name: Build with Maven
run: >
mvn
Expand All @@ -77,19 +72,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
check-latest: true
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-
cache: maven
- name: Build package
run: >
mvn
Expand Down

0 comments on commit 50fcb27

Please sign in to comment.