diff --git a/.github/workflows/android-build.yml b/.github/workflows/android-build.yml index 23c42fb88e..c304c37817 100644 --- a/.github/workflows/android-build.yml +++ b/.github/workflows/android-build.yml @@ -13,30 +13,30 @@ concurrency: jobs: check_spotless: name: Check spotless - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest 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 build: name: Build debug - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest 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..d3f4360288 100644 --- a/.github/workflows/android-debug-artifact-ondemand.yml +++ b/.github/workflows/android-debug-artifact-ondemand.yml @@ -8,7 +8,7 @@ on: jobs: apk: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest if: github.event.comment.body == 'Build test apk' && (github.actor == 'VishalNehra' || github.actor == 'TranceLove' || github.actor == 'EmmanuelMess' || github.actor == 'VishnuSanal') steps: - name: Acknowledge the request with thumbs up reaction @@ -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..56cfdbf0d1 100644 --- a/.github/workflows/android-debug-artifact-release.yml +++ b/.github/workflows/android-debug-artifact-release.yml @@ -6,25 +6,25 @@ on: jobs: apk: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest 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..a551a2ebec 100644 --- a/.github/workflows/android-feature.yml +++ b/.github/workflows/android-feature.yml @@ -14,34 +14,34 @@ concurrency: jobs: check_spotless: name: Check spotless - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest 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 build: name: Build debug and run Jacoco tests - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest 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..331d75846e 100644 --- a/.github/workflows/android-main.yml +++ b/.github/workflows/android-main.yml @@ -14,37 +14,37 @@ concurrency: jobs: check_spotless: name: Check spotless - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest 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 build: name: Build debug, Jacoco test and publish to codacy - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest 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: |