Skip to content

Commit

Permalink
ci: upgrade github action version
Browse files Browse the repository at this point in the history
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-java@v3, gradle/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
  • Loading branch information
Bambooin committed Mar 31, 2024
1 parent 1edfe54 commit bff173a
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 34 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,28 @@ 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/[email protected]
uses: gradle/actions/setup-gradle@v3
with:
arguments: spotlessCheck --stacktrace

build:
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/[email protected]
uses: gradle/actions/setup-gradle@v3
with:
arguments: assembledebug --stacktrace
10 changes: 5 additions & 5 deletions .github/workflows/android-debug-artifact-ondemand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/android-debug-artifact-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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
14 changes: 7 additions & 7 deletions .github/workflows/android-feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,32 @@ 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/[email protected]
uses: gradle/actions/setup-gradle@v3
with:
arguments: spotlessCheck --stacktrace

build:
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/[email protected]
uses: gradle/actions/setup-gradle@v3
with:
arguments: assembledebug --stacktrace
- name: Run test cases
uses: gradle/[email protected]
uses: gradle/actions/setup-gradle@v3
with:
arguments: jacocoTestPlayDebugUnitTestReport --stacktrace --info
22 changes: 11 additions & 11 deletions .github/workflows/android-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,35 @@ 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/[email protected]
uses: gradle/actions/setup-gradle@v3
with:
arguments: spotlessCheck

build:
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/[email protected]
uses: gradle/actions/setup-gradle@v3
with:
arguments: assembledebug
- name: Run test cases
uses: gradle/[email protected]
uses: gradle/actions/setup-gradle@v3
with:
arguments: jacocoTestPlayDebugUnitTestReport
- name: Publish test cases
Expand All @@ -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/[email protected]
uses: gradle/actions/setup-gradle@v3
- name: AVD cache
uses: actions/cache@v2
uses: actions/cache@v4
id: avd-cache
with:
path: |
Expand Down

0 comments on commit bff173a

Please sign in to comment.