forked from TeamAmaze/AmazeFileManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
5 changed files
with
34 additions
and
34 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 |
---|---|---|
|
@@ -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 |
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 |
---|---|---|
|
@@ -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 |
---|---|---|
|
@@ -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 |
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 |
---|---|---|
|
@@ -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 |
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 |
---|---|---|
|
@@ -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 | ||
|
@@ -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: | | ||
|