-
-
Notifications
You must be signed in to change notification settings - Fork 13
41 lines (31 loc) · 889 Bytes
/
workflow.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
name: workflow
on:
push:
branches:
- master
- develop
jobs:
testing:
name: Lint and unit test
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Decode Firebase google-services.json
env:
FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }}
run: echo $FIREBASE_CONFIG > app/google-services.json
- name: Decode Keystore properties file
env:
KEY_PROPERTIES: ${{ secrets.KEY_STORE_PROPERTIES }}
run: echo $KEY_PROPERTIES > app/keystore.properties
- name: Run ktlint
run: ./gradlew ktlint
- name: Run Android lint
run: ./gradlew lintDebug
- name: Run unit tests
run: ./gradlew testDebugUnitTest