From 54ea2ae0dc43170336e87871a189bceb906eabad Mon Sep 17 00:00:00 2001 From: Drew Carlson Date: Tue, 29 Oct 2024 01:15:45 -0700 Subject: [PATCH] Update gradle actions --- .github/workflows/code-quality.yml | 14 ++++++-------- .github/workflows/publish.yml | 15 +++++++-------- .github/workflows/tests.yml | 27 +++++++++++---------------- 3 files changed, 24 insertions(+), 32 deletions(-) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 999a321..e6339cb 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -37,6 +37,7 @@ jobs: distribution: 'zulu' java-version: 11 + - uses: gradle/actions/setup-gradle@v4 - name: Cache Build files uses: actions/cache@v4 with: @@ -44,10 +45,8 @@ jobs: ~/.gradle key: ${{ runner.os }}-${{ hashFiles('gradle.properties') }} - - uses: gradle/gradle-build-action@v3 - name: Check spotless/ktlint rules - with: - arguments: spotlessCheck + - name: Check spotless/ktlint rules + run: ./gradlew spotlessCheck api-check: runs-on: ubuntu-latest @@ -60,6 +59,7 @@ jobs: distribution: 'zulu' java-version: 11 + - uses: gradle/actions/setup-gradle@v4 - name: Cache Build files uses: actions/cache@v4 with: @@ -67,7 +67,5 @@ jobs: ~/.gradle key: ${{ runner.os }}-${{ hashFiles('gradle.properties') }} - - uses: gradle/gradle-build-action@v3 - name: Check public api compatibility - with: - arguments: apiCheck \ No newline at end of file + - name: Check public api compatibility + run: ./gradlew apiCheck \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index eec1b59..56ee68a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -43,6 +43,7 @@ jobs: distribution: 'zulu' java-version: 11 + - uses: gradle/actions/setup-gradle@v4 - name: Cache Build files uses: actions/cache@v4 with: @@ -51,10 +52,8 @@ jobs: ~/.gradle key: ${{ runner.os }}-${{ hashFiles('gradle.properties') }} - - uses: gradle/gradle-build-action@v3 - name: Publish - with: - arguments: clean publishAllPublicationsToMavenCentralRepository + - name: Publish + run: ./gradlew clean publishAllPublicationsToMavenCentralRepository publish-docs: name: Publish KDoc to Github Pages @@ -67,6 +66,8 @@ jobs: distribution: 'zulu' java-version: 11 + - uses: gradle/actions/setup-gradle@v4 + - name: Cache Build files uses: actions/cache@v4 with: @@ -75,10 +76,8 @@ jobs: ~/.gradle key: ${{ runner.os }}-${{ hashFiles('gradle.properties') }} - - uses: gradle/gradle-build-action@v3 - name: Build Docs - with: - arguments: clean dokkaHtml + - name: Build Docs + run: ./gradlew clean dokkaHtml - name: Publish Docs uses: JamesIves/github-pages-deploy-action@v4.6.3 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 650cc29..271c904 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,6 +18,9 @@ jobs: with: distribution: 'zulu' java-version: 11 + + - uses: gradle/actions/setup-gradle@v4 + - name: Cache Build files uses: actions/cache@v4 with: @@ -28,28 +31,20 @@ jobs: %USERPROFILE%\.gradle key: ${{ runner.os }}-${{ hashFiles('gradle.properties') }} - - uses: gradle/gradle-build-action@v3 - name: Test Windows Target + - name: Test Windows Target if: ${{ startsWith(matrix.os, 'windows') }} - with: - arguments: windowsTest + run: ./gradlew windowsTest - - uses: gradle/gradle-build-action@v3 - name: Test Apple Targets + - name: Test Apple Targets if: ${{ startsWith(matrix.os, 'macos') }} - with: - arguments: macosX64Test + run: ./gradlew macosX64Test - - uses: gradle/gradle-build-action@v3 - name: Test Linux Target + - name: Test Linux Target if: ${{ startsWith(matrix.os, 'ubuntu') }} - with: - arguments: linuxX64Test + run: ./gradlew linuxX64Test - - uses: gradle/gradle-build-action@v3 - name: Test JVM Target - with: - arguments: jvmTest + - name: Test JVM Target + run: ./gradlew jvmTest - name: Publish Test Reports uses: mikepenz/action-junit-report@v4