-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.16 KB
/
androidTestSuite.yml
File metadata and controls
47 lines (39 loc) · 1.16 KB
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
name: Android Test Suite
# The workflow will start for every PR against master branch
on:
pull_request:
push:
branches:
- master
# Multiple jobs run in parallel
jobs:
android_test_cases:
name: Android Unit Tests
runs-on: ubuntu-20.04
steps:
# Checkouts the current branch for processing
- name: Checkout
uses: actions/checkout@v2
# Setup the Java environment
- name: Setup JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '11'
# Cache and restore the Gradle dependencies on multiple runs
- name: Gradle cache
uses: gradle/gradle-build-action@v2
# Run android unit tests & organize test reports
- name: Run tests
run: |
chmod +x gradlew
./gradlew jacocoTestDebugUnitTestReport
- name: Download Test Reports Folder
uses: actions/download-artifact@v2
with:
name: report
path: app/build/reports/coverage/debug
- name: Upload Test Report
uses: codecov/codecov-action@v2
with:
files: "app/build/reports/coverage/debug/report.xml"