-
-
Notifications
You must be signed in to change notification settings - Fork 103
52 lines (44 loc) · 1.14 KB
/
android_pr_build.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
name: PR Checks
on:
pull_request:
jobs:
# this job builds and uploads the apk
build_the_apk:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: perform the checkout
uses: actions/checkout@v3
with:
submodules: 'recursive'
# Verify the SHA-sum
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: setup JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
# This initializes gradle and sets up caching. Default version is the wrapper version.
- name: gradle build
uses: gradle/gradle-build-action@v2
with:
arguments: assemble bundle packageDebugAndroidTest :app:lint test
# Lint
ktlint:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: perform the checkout
uses: actions/checkout@v3
- name: setup JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: ktlint check
uses: gradle/gradle-build-action@v2
with:
arguments: ktlintCheck