diff --git a/.github/workflows/android-build.yml b/.github/workflows/android-build.yml index 23c42fb88e..60fe6ea36a 100644 --- a/.github/workflows/android-build.yml +++ b/.github/workflows/android-build.yml @@ -15,14 +15,14 @@ jobs: name: Check spotless runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: "temurin" java-version: 11 - name: Check formatting using spotless - uses: gradle/gradle-build-action@v2.4.2 + uses: gradle/actions/setup-gradle@v3 with: arguments: spotlessCheck --stacktrace @@ -30,13 +30,13 @@ jobs: name: Build debug runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: "temurin" java-version: 11 - name: Build with Gradle - uses: gradle/gradle-build-action@v2.4.2 + uses: gradle/actions/setup-gradle@v3 with: arguments: assembledebug --stacktrace \ No newline at end of file diff --git a/.github/workflows/android-debug-artifact-ondemand.yml b/.github/workflows/android-debug-artifact-ondemand.yml index 92601c5eaa..55241e26e1 100644 --- a/.github/workflows/android-debug-artifact-ondemand.yml +++ b/.github/workflows/android-debug-artifact-ondemand.yml @@ -30,27 +30,27 @@ jobs: echo "::set-output name=repo_clone_url::${{ fromJson(steps.request.outputs.data).head.repo.clone_url }}" echo "::set-output name=repo_ssh_url::${{ fromJson(steps.request.outputs.data).head.repo.ssh_url }}" - name: Checkout PR Branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: token: ${{ secrets.GITHUB_TOKEN }} repository: ${{fromJson(steps.request.outputs.data).head.repo.full_name}} ref: ${{fromJson(steps.request.outputs.data).head.ref}} - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: "temurin" java-version: 11 - name: Build with Gradle - uses: gradle/gradle-build-action@v2.4.2 + uses: gradle/actions/setup-gradle@v3 with: arguments: assembleDebug --stacktrace - name: Upload fdroid artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Amaze-Fdroid-debug path: app/build/outputs/apk/fdroid/debug/app-fdroid-debug.apk - name: Upload play artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Amaze-Play-debug path: app/build/outputs/apk/play/debug/app-play-debug.apk diff --git a/.github/workflows/android-debug-artifact-release.yml b/.github/workflows/android-debug-artifact-release.yml index 14604bfd2e..94c2589ae2 100644 --- a/.github/workflows/android-debug-artifact-release.yml +++ b/.github/workflows/android-debug-artifact-release.yml @@ -8,23 +8,23 @@ jobs: apk: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: "temurin" java-version: 11 - name: Build with Gradle - uses: gradle/gradle-build-action@v2.4.2 + uses: gradle/actions/setup-gradle@v3 with: arguments: assembleDebug - name: Upload fdroid artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Amaze-Fdroid-debug path: app/build/outputs/apk/fdroid/debug/app-fdroid-debug.apk - name: Upload play artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Amaze-Play-debug path: app/build/outputs/apk/play/debug/app-play-debug.apk diff --git a/.github/workflows/android-feature.yml b/.github/workflows/android-feature.yml index 3eeb27438f..03522e873d 100644 --- a/.github/workflows/android-feature.yml +++ b/.github/workflows/android-feature.yml @@ -16,14 +16,14 @@ jobs: name: Check spotless runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: "temurin" java-version: 11 - name: Check formatting using spotless - uses: gradle/gradle-build-action@v2.4.2 + uses: gradle/actions/setup-gradle@v3 with: arguments: spotlessCheck --stacktrace @@ -31,17 +31,17 @@ jobs: name: Build debug and run Jacoco tests runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: "temurin" java-version: 11 - name: Build with Gradle - uses: gradle/gradle-build-action@v2.4.2 + uses: gradle/actions/setup-gradle@v3 with: arguments: assembledebug --stacktrace - name: Run test cases - uses: gradle/gradle-build-action@v2.4.2 + uses: gradle/actions/setup-gradle@v3 with: arguments: jacocoTestPlayDebugUnitTestReport --stacktrace --info \ No newline at end of file diff --git a/.github/workflows/android-main.yml b/.github/workflows/android-main.yml index 5d15d1c254..08bfd72f1f 100644 --- a/.github/workflows/android-main.yml +++ b/.github/workflows/android-main.yml @@ -16,14 +16,14 @@ jobs: name: Check spotless runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: "temurin" java-version: 11 - name: Check formatting using spotless - uses: gradle/gradle-build-action@v2.4.2 + uses: gradle/actions/setup-gradle@v3 with: arguments: spotlessCheck @@ -31,20 +31,20 @@ jobs: name: Build debug, Jacoco test and publish to codacy runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: "temurin" java-version: 11 - name: Build with Gradle - uses: gradle/gradle-build-action@v2.4.2 + uses: gradle/actions/setup-gradle@v3 with: arguments: assembledebug - name: Run test cases - uses: gradle/gradle-build-action@v2.4.2 + uses: gradle/actions/setup-gradle@v3 with: arguments: jacocoTestPlayDebugUnitTestReport - name: Publish test cases @@ -70,15 +70,15 @@ jobs: api-level: [ 16, 19, 28 ] steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Java 15 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 15 - name: Gradle cache - uses: gradle/gradle-build-action@v2.4.2 + uses: gradle/actions/setup-gradle@v3 - name: AVD cache - uses: actions/cache@v2 + uses: actions/cache@v4 id: avd-cache with: path: |