-
-
Notifications
You must be signed in to change notification settings - Fork 11
61 lines (49 loc) · 1.4 KB
/
android.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Android CI
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: set up JDK 8.0.422+5
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '8.0.422+5'
- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v4
- name: Make gradlew executable
run: chmod +x ./gradlew
- uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew build
- name: Build with Gradle (Unit tests)
run: ./gradlew testRelease
- name: Build with Gradle (lintVitalRelease)
run: ./gradlew lintVitalRelease
- name: Upload artifacts (apk)
uses: actions/upload-artifact@v4
with:
name: app
path: app/build/outputs/apk/debug/app-debug.apk
- name: Upload artifacts (lint results)
uses: actions/upload-artifact@v4
with:
name: lint-results.html
path: app/build/reports/lint-results.html