-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (34 loc) · 944 Bytes
/
unitTest.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
name: Hanji Unit Testing
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: 8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Create keys.txt
env:
KEYS_TXT: ${{ secrets.KEYS_TXT }}
run: echo $KEYS_TXT > keys.txt
- name: Create google-services.json
env:
FIREBASE_SECRET: ${{ secrets.GOOGLE_SERVICES }}
run: echo $FIREBASE_SECRET > app/google-services.json
- name: Run unit tests
run: ./gradlew testDebugUnitTest --stacktrace
- name: Test Report
uses: asadmansr/[email protected]
if: ${{ always() }}