Skip to content

Commit 5605835

Browse files
committed
Simplify CI: build > release only, remove lint and tests
1 parent 9b252dc commit 5605835

File tree

1 file changed

+3
-42
lines changed

1 file changed

+3
-42
lines changed

.github/workflows/android.yml

Lines changed: 3 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -27,54 +27,15 @@ jobs:
2727
- name: Build Debug APK
2828
run: ./gradlew assembleDebug --no-daemon
2929

30-
- name: Run Unit Tests
31-
run: ./gradlew test --no-daemon
32-
3330
- name: Upload Debug APK
3431
uses: actions/upload-artifact@v4
3532
with:
3633
name: app-debug
37-
path: app/build/outputs/apk/debug/app-debug.apk
38-
retention-days: 7
39-
40-
- name: Upload Test Results
41-
uses: actions/upload-artifact@v4
42-
if: always()
43-
with:
44-
name: test-results
45-
path: app/build/reports/tests/
46-
retention-days: 7
47-
48-
lint:
49-
runs-on: ubuntu-latest
50-
51-
steps:
52-
- name: Checkout code
53-
uses: actions/checkout@v4
54-
55-
- name: Set up JDK 17
56-
uses: actions/setup-java@v4
57-
with:
58-
java-version: '17'
59-
distribution: 'temurin'
60-
cache: gradle
61-
62-
- name: Grant execute permission for gradlew
63-
run: chmod +x gradlew
64-
65-
- name: Run Lint
66-
run: ./gradlew lint --no-daemon
67-
68-
- name: Upload Lint Results
69-
uses: actions/upload-artifact@v4
70-
if: always()
71-
with:
72-
name: lint-results
73-
path: app/build/reports/lint-results*.html
34+
path: app/build/outputs/apk/debug/*.apk
7435
retention-days: 7
7536

7637
release:
77-
needs: [build, lint]
38+
needs: build
7839
runs-on: ubuntu-latest
7940
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
8041

@@ -99,5 +60,5 @@ jobs:
9960
uses: actions/upload-artifact@v4
10061
with:
10162
name: app-release
102-
path: app/build/outputs/apk/release/app-release-unsigned.apk
63+
path: app/build/outputs/apk/release/*.apk
10364
retention-days: 30

0 commit comments

Comments
 (0)