Skip to content

Commit b886b3a

Browse files
committed
Update CI
1 parent b2380e1 commit b886b3a

2 files changed

Lines changed: 25 additions & 30 deletions

File tree

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/android.yml

Lines changed: 19 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,38 +14,16 @@ jobs:
1414

1515
steps:
1616
- name: Checkout Repository
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1818

1919
- name: Set Up JDK 22
20-
uses: actions/setup-java@v4
20+
uses: actions/setup-java@v5
2121
with:
2222
java-version: '22'
23-
distribution: 'oracle'
24-
cache: gradle
23+
distribution: 'temurin'
2524

26-
- name: Cache Gradle Dependencies
27-
uses: actions/cache@v4
28-
with:
29-
path: |
30-
~/.gradle/caches
31-
~/.gradle/wrapper
32-
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
33-
restore-keys: |
34-
${{ runner.os }}-gradle
35-
36-
- name: Cache Android Build Outputs
37-
uses: actions/cache@v4
38-
with:
39-
path: app/build
40-
key: ${{ runner.os }}-build-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
41-
restore-keys: |
42-
${{ runner.os }}-build
43-
44-
- name: Set Executable Permission for Gradle Wrapper
45-
run: chmod +x gradlew
46-
47-
- name: Validate Gradle Wrapper
48-
uses: gradle/actions/wrapper-validation@v4
25+
- name: Setup Gradle
26+
uses: gradle/actions/setup-gradle@v6
4927

5028
- name: Run Code Linting
5129
run: ./gradlew lint
@@ -54,11 +32,22 @@ jobs:
5432
run: ./gradlew test
5533

5634
- name: Build APK (Debug)
57-
id: gradle_build_debug
5835
run: ./gradlew assembleDebug
5936

37+
- name: Upload Lint & Test Reports
38+
uses: actions/upload-artifact@v7
39+
if: always()
40+
with:
41+
name: reports
42+
path: |
43+
app/build/reports/lint-results*.html
44+
app/build/reports/tests/
45+
retention-days: 7
46+
6047
- name: Upload Debug APK
61-
uses: actions/upload-artifact@v4
48+
uses: actions/upload-artifact@v7
6249
with:
6350
name: app-debug
64-
path: app/build/outputs/apk/debug/
51+
path: app/build/outputs/apk/debug/
52+
if-no-files-found: error
53+
retention-days: 14

0 commit comments

Comments
 (0)