-
-
Notifications
You must be signed in to change notification settings - Fork 61
55 lines (46 loc) · 1.32 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
name: Android CI
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1.0.4
- name: Make gradlew executable
run: chmod +x ./gradlew
- uses: actions/cache@v2
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 (debug apk)
uses: actions/upload-artifact@v3.0.0
with:
name: app
path: app/build/outputs/apk/debug/app-debug.apk
- name: Upload artifacts (lint results)
uses: actions/upload-artifact@v3.0.0
with:
name: lint-results.html
path: app/build/reports/lint-results.html