-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (36 loc) · 1.03 KB
/
develop_pr_checks.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: Develop PR Checks
on:
pull_request:
branches:
- develop
jobs:
lint:
name: Develop PR - Lint
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Install ktlint
uses: nbadal/action-ktlint-setup@v1
with:
ktlint_version: '0.48.2'
- run: ktlint
shell: bash
build:
name: Develop PR - Unit Test
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 17
- name: Make local.properties
env:
MAPBOX_DEV_TOKEN: sk.eyJ1IjoiYWtob2k5MCIsImEiOiJjbGUwMjNxa3AwNDEzM3Fyejh6b2ZrNGw3In0.mSo-Z30lqYW4K2Ime0z62g
run: echo -e "mapbox.downloads.token=$MAPBOX_DEV_TOKEN" > local.properties
- name: Build Debug APK
run: bash ./gradlew :app:assembleDebug --stacktrace
- name: Run unit tests
run: bash ./gradlew testDebugUnitTest