-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (40 loc) · 1.28 KB
/
on_pull_request.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
name: Android CI
on:
pull_request:
branches: [ master, main, develop, 'release/**' ]
types: [ opened, synchronize ]
jobs:
assemble_modules:
name: Assemble modules
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Update local properties for secrets
run: echo MAPS_API_KEY="MAPS_API_KEY_VALUE" > ./local.properties
- name: Assemble app debug APK
run: bash ./gradlew assembleDebug
code_quality_analysis:
name: Check code quality
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Update local properties for secrets
run: echo MAPS_API_KEY="MAPS_API_KEY_VALUE" > ./local.properties
- name: Misspelling on detekt + ktlint
run: bash ./gradlew detekt --stacktrace --continue
- name: Run unit tests and check coverage
run: bash ./gradlew jacocoCoverageVerification --stacktrace --continue