Skip to content

Commit

Permalink
[CI] Switch to the official setup-java action
Browse files Browse the repository at this point in the history
The joschi/setup-jdk GitHub Action is deprecated: joschi/setup-jdk#29
  • Loading branch information
valfirst authored and Sgitario committed Sep 8, 2022
1 parent 2916d86 commit 0240096
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,13 @@ jobs:
java: [ 11 ]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Install JDK {{ matrix.java }}
uses: joschi/setup-jdk@fdc8726d3eaee700a67647704c396f71fe773eed
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
check-latest: true
cache: 'maven'
- name: Build
run: |
mvn -s .github/mvn-settings.xml clean install -Dvalidate-format
mvn -s .github/mvn-settings.xml clean install -Dvalidate-format
11 changes: 3 additions & 8 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,13 @@ jobs:
java: [ 11 ]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Install JDK {{ matrix.java }}
uses: joschi/setup-jdk@fdc8726d3eaee700a67647704c396f71fe773eed
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
check-latest: true
cache: 'maven'
- name: Build
run: |
mvn -s .github/mvn-settings.xml clean install -Dcoverage
Expand Down Expand Up @@ -63,4 +58,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: ci-coverage
path: coverage-report/target/site/jacoco
path: coverage-report/target/site/jacoco
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
passphrase: ${{ secrets.GPG_PASSPHRASE }}

- name: Install JDK 11
uses: joschi/setup-jdk@fdc8726d3eaee700a67647704c396f71fe773eed
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
Expand Down

0 comments on commit 0240096

Please sign in to comment.