Skip to content

Commit

Permalink
update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shadow578 committed Nov 11, 2024
1 parent 1fcccc8 commit b53d2ef
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/auto_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
JAVA_TOOL_OPTIONS: -Xmx5g -XX:+UseParallelGC
steps:
# setup env
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: main
- uses: actions/setup-java@v1
- uses: actions/setup-java@v2
with:
java-version: 11
- run: |
Expand Down Expand Up @@ -74,15 +74,15 @@ jobs:

# upload results
- name: Upload Test Results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
if: always()
with:
name: unit-test-results
path: ./app/build/test-results/testDebugUnitTest/*.xml

# upload artifacts
- name: Upload Artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: apks
path: ./app/build/outputs/apk/release/*.apk
Expand All @@ -97,7 +97,7 @@ jobs:
# download artifacts
- run: mkdir ./release/
- name: Download Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: apks
path: ./release/
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/full_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
JAVA_TOOL_OPTIONS: -Xmx5g -XX:+UseParallelGC
steps:
# setup env
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/checkout@v4
- uses: actions/setup-java@v2
with:
java-version: 11
- run: |
Expand All @@ -51,7 +51,7 @@ jobs:

# upload results
- name: Upload Test Results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: unit-test-results
path: ./app/build/test-results/testDebugUnitTest/*.xml
Expand All @@ -73,8 +73,8 @@ jobs:
api-level: [23, 26, 30]
steps:
# setup env
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/checkout@v4
- uses: actions/setup-java@v2
with:
java-version: 11
- run: |
Expand All @@ -89,15 +89,15 @@ jobs:

# setup caches (this is based on the example given at https://github.com/marketplace/actions/android-emulator-runner#usage)
- name: Gradle cache
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}

- name: AVD cache
uses: actions/cache@v2
uses: actions/cache@v4
id: avd-cache
with:
path: |
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:

# upload results
- name: Upload Test Results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: instrumentation-test-results
path: ./app/build/outputs/androidTest-results/connected/*.xml
Expand All @@ -148,7 +148,7 @@ jobs:
# download unit test results
- run: mkdir ./results/
- name: Download Unit Test Results
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: unit-test-results
path: ./results/
Expand All @@ -158,7 +158,7 @@ jobs:

# download instrumentation test results
- name: Download Instrumentation Test Results
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: instrumentation-test-results
path: ./results/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/short_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
JAVA_TOOL_OPTIONS: -Xmx5g -XX:+UseParallelGC
steps:
# setup env
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/checkout@v4
- uses: actions/setup-java@v2
with:
java-version: 11
- run: |
Expand All @@ -47,7 +47,7 @@ jobs:

# upload results
- name: Upload Test Results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: unit-test-results
path: ./app/build/test-results/testDebugUnitTest/*.xml
Expand All @@ -62,7 +62,7 @@ jobs:
# download unit test results
- run: mkdir ./results/
- name: Download Unit Test Results
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: unit-test-results
path: ./results/
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ android {
minSdk = 24
targetSdk = 33
compileSdk = 33
versionCode = 6
versionName = "1.4.1"
versionCode = 7
versionName = "1.4.2"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

kapt {
Expand Down

0 comments on commit b53d2ef

Please sign in to comment.