diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 79ae6a7..b3755a0 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -18,22 +18,22 @@ jobs: linux: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: '11' + - uses: gradle/actions/setup-gradle@v3 + - name: Build with Gradle id: gradle-build - uses: gradle/gradle-build-action@v2 - with: - arguments: --no-daemon :build-logic:build build --stacktrace + run: ./gradlew --no-daemon :build-logic:build build --stacktrace - name: Store reports if: always() && (steps.gradle-build.outcome == 'success' || steps.gradle-build.outcome == 'failure') - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: reports path: | @@ -47,9 +47,9 @@ jobs: matrix: java: [ 8, 17, 21 ] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: actions/setup-java@v3 + - uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: | @@ -61,15 +61,15 @@ jobs: echo "org.gradle.java.installations.auto-download=false" | tee -a gradle.properties echo "org.gradle.java.installations.fromEnv=JAVA_HOME_${{ matrix.java }}_X64" | tee -a gradle.properties + - uses: gradle/actions/setup-gradle@v3 + - name: Build with Gradle id: gradle-build - uses: gradle/gradle-build-action@v2 - with: - arguments: --no-daemon test "-Ptest.java-toolchain=${{ matrix.java }}" + run: ./gradlew --no-daemon test "-Ptest.java-toolchain=${{ matrix.java }}" - name: Store reports if: always() && (steps.gradle-build.outcome == 'success' || steps.gradle-build.outcome == 'failure') - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: jdk-${{ matrix.java }}-tests path: |