-
Notifications
You must be signed in to change notification settings - Fork 14
54 lines (45 loc) · 1.26 KB
/
Testing.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
44
45
46
47
48
49
50
51
52
53
54
name: Testing
on:
pull_request:
jobs:
test_job:
name: Testing
runs-on: [ ubuntu-latest ]
continue-on-error: true
steps:
- name: checkout
uses: actions/checkout@v2
- name: Set Up JDK 14
uses: actions/setup-java@v1
with:
java-version: 14
- name: Restore Cache
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Run Tests
run: ./gradlew test --stacktrace
- name: Upload Test Reports
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
name: unit-tests-reports
path: '**/build/reports/tests/'
report:
runs-on: ubuntu-latest
needs: test_job
if: ${{ always() }}
steps:
- name: Download Test Reports Folder
uses: actions/download-artifact@v2
with:
name: unit-tests-reports
- name: Android Test Report
uses: asadmansr/[email protected]