-
Notifications
You must be signed in to change notification settings - Fork 30
48 lines (48 loc) · 1.65 KB
/
main.yaml
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
46
47
48
name: Build, Test and Distribute
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build
uses: vgaidarji/[email protected]
env:
FABRIC_API_KEY: ${{ secrets.FABRIC_API_KEY }}
FABRIC_API_SECRET: ${{ secrets.FABRIC_API_SECRET }}
with:
args: "sdkmanager 'platforms;android-26' && ./gradlew assembleDebug"
- name: Check
uses: vgaidarji/[email protected]
env:
FABRIC_API_KEY: ${{ secrets.FABRIC_API_KEY }}
FABRIC_API_SECRET: ${{ secrets.FABRIC_API_SECRET }}
with:
args: "./gradlew testDebug jacocoTestReport checkstyle pmd lintDebug buildDashboard"
- name: Distribute
uses: vgaidarji/[email protected]
env:
FABRIC_API_KEY: ${{ secrets.FABRIC_API_KEY }}
FABRIC_API_SECRET: ${{ secrets.FABRIC_API_SECRET }}
with:
args: "./gradlew crashlyticsUploadDistributionDebug"
- name: Publish Code Coverage
uses: vgaidarji/[email protected]
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
with:
args: "./gradlew coveralls"
androidTest:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Instrumentation Tests
uses: reactivecircus/android-emulator-runner@v2
env:
FABRIC_API_KEY: ${{ secrets.FABRIC_API_KEY }}
FABRIC_API_SECRET: ${{ secrets.FABRIC_API_SECRET }}
with:
api-level: 29
arch: x86
disable-animations: true
script: ./gradlew connectedAndroidTest --stacktrace