Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Update java 16 to 17 for PR test run, change distribution to temurin, fix publish unit test result task not working from forks #737

Closed
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: 8
- name: Cache Gradle
uses: actions/cache@v2
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: 8
- name: Cache Gradle
uses: actions/cache@v2
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: 11
- name: Cache SonarCloud packages
uses: actions/cache@v2
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
java: [ 8, 11, 16 ]
java: [ 8, 11, 17 ]
needs: [ validation, commitlint ]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -42,7 +42,7 @@ jobs:
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Cache Gradle
uses: actions/cache@v2
Expand All @@ -65,7 +65,7 @@ jobs:
shell: cmd
run: gradlew --info check
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v1
uses: EnricoMi/publish-unit-test-result-action/composite@branch-treat-empty-input-strings-as-none
if: always() && matrix.os != 'ubuntu-latest'
with:
files: '**/build/test-results/**/*.xml'
Expand All @@ -85,7 +85,7 @@ jobs:
if: env.SONAR_TOKEN != null
uses: actions/setup-java@v2
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: 11
- name: Cache SonarCloud packages
if: env.SONAR_TOKEN != null
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: 8
- name: Cache Gradle
uses: actions/cache@v2
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: 8
- name: Cache Gradle
uses: actions/cache@v2
Expand Down