-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4137 from Bambooin/node20
Upgrade to Node 20 in GitHub Action
- Loading branch information
Showing
5 changed files
with
42 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
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/[email protected] | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
arguments: assembledebug --stacktrace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[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 | ||
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/[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[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 | ||
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/[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 | ||
|
@@ -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: | | ||
|