-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (38 loc) · 1.23 KB
/
ci.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
name: CI
on:
pull_request:
env:
APP_LOCATION: app/build/outputs/apk/debug/app-debug.apk
ORG_NAME: Wednesday-Test # The organisation name
GROUP_NAME: Testers # The group name, you can create as many as you want but mention the one you want to notify
APP_NAME: Android-Template # The app name, under wh
jobs:
lint_test_build:
name: Lint, Test and Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- 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: Setup local.properties
env:
PROPS: ${{ secrets.LOCAL_PROPERTIES }}
run: echo -n "$PROPS" | base64 --decode > local.properties
- name: Ktlint
run: ./gradlew ktlint
- name: Lint
run: ./gradlew lintDevRelease
- name: Unit tests
run: ./gradlew testDevDebugUnitTest
- name: Build the apk
run: ./gradlew assembleDevDebug