Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

Commit d4521d5

Browse files
committed
Cleanup yml
1 parent d5826c1 commit d4521d5

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ jobs:
6464
distribution: 'zulu'
6565
java-version: 17
6666
- uses: gradle/gradle-build-action@v2
67-
- name: Unit tests
68-
run: ./gradlew test
67+
- run: ./gradlew test
6968

7069
instrumentation-tests:
7170
runs-on: macos-latest
@@ -81,27 +80,23 @@ jobs:
8180
with:
8281
distribution: 'zulu'
8382
java-version: 17
84-
- name: Gradle cache
85-
uses: gradle/gradle-build-action@v2
86-
- name: AVD cache
87-
uses: actions/cache@v3
83+
- uses: gradle/gradle-build-action@v2
84+
- uses: actions/cache@v3
8885
id: avd-cache
8986
with:
9087
path: |
9188
~/.android/avd/*
9289
~/.android/adb*
9390
key: avd-${{ matrix.api-level }}
94-
- name: Create AVD and generate snapshot for caching
95-
if: steps.avd-cache.outputs.cache-hit != 'true'
91+
- if: steps.avd-cache.outputs.cache-hit != 'true'
9692
uses: reactivecircus/android-emulator-runner@v2
9793
with:
9894
api-level: ${{ matrix.api-level }}
9995
force-avd-creation: false
10096
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
10197
disable-animations: false
10298
script: echo "Generated AVD snapshot for caching."
103-
- name: Instrumentation tests
104-
uses: reactivecircus/android-emulator-runner@v2
99+
- uses: reactivecircus/android-emulator-runner@v2
105100
with:
106101
api-level: ${{ matrix.api-level }}
107102
force-avd-creation: false
@@ -118,8 +113,7 @@ jobs:
118113
distribution: 'zulu'
119114
java-version: 17
120115
- uses: gradle/gradle-build-action@v2
121-
- name: Build
122-
run: ./gradlew app:assemble
116+
- run: ./gradlew app:assemble
123117
- uses: actions/upload-artifact@v3
124118
if: matrix.os == 'ubuntu-latest'
125119
with:

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@ jobs:
1515
with:
1616
distribution: 'zulu'
1717
java-version: 17
18-
- name: Build APK
19-
uses: gradle/gradle-build-action@v2
20-
with:
21-
arguments: app:assembleProdRelease
22-
- name: Create Release
23-
uses: ncipollo/release-action@v1
18+
- uses: gradle/gradle-build-action@v2
19+
- run: ./gradlew app:assembleProdRelease
20+
- uses: ncipollo/release-action@v1
2421
with:
2522
artifacts: "app/build/*.apk"
2623
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)