-
-
Notifications
You must be signed in to change notification settings - Fork 3
69 lines (51 loc) · 1.83 KB
/
Copy pathmain.yml
File metadata and controls
69 lines (51 loc) · 1.83 KB
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
62
63
64
65
66
67
68
name: Android CI
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #6.0.2
with:
submodules: recursive
persist-credentials: false
- name: set up JDK 17
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 #5.2.0
with:
distribution: 'temurin'
java-version: '17'
- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e #6.1.0
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew assembleNightlyDebug
- name: Upload artifacts (debug apk)
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f #7.0.0
with:
name: app
path: app/build/outputs/apk/nightly/debug/app-nightly-debug.apk
- name: Build with Gradle
run: ./gradlew assembleProductionRelease
- name: Build with Gradle (Unit tests)
run: ./gradlew testProductionRelease
- name: Build with Gradle (lintVitalRelease)
run: ./gradlew lintVitalProductionRelease
- name: Upload artifacts (lint results)
if: success() || failure()
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f #7.0.0
with:
name: lint-results.html
path: app/build/reports/lint-results-productionRelease.html
- name: Upload artifacts (unit tests)
if: success() || failure()
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f #7.0.0
with:
name: unit-test-results
path: app/build/reports/tests/testProductionReleaseDebugUnitTest/