2021-04-07 06:25:48 -05:00
|
|
|
name: Tests
|
2020-12-27 11:30:50 -06:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-04-07 06:25:48 -05:00
|
|
|
branches: [ master, develop ]
|
2020-12-27 11:30:50 -06:00
|
|
|
tags: [ '*' ]
|
|
|
|
pull_request:
|
2021-04-07 06:25:48 -05:00
|
|
|
branches: [ master, develop ]
|
2020-12-27 11:30:50 -06:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
unit-tests:
|
|
|
|
name: Unit tests
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 10
|
|
|
|
steps:
|
2021-03-06 08:34:07 -06:00
|
|
|
- uses: fkirc/skip-duplicate-actions@master
|
2020-12-27 11:30:50 -06:00
|
|
|
- uses: actions/checkout@v2
|
2021-03-06 08:34:07 -06:00
|
|
|
- uses: gradle/wrapper-validation-action@v1
|
2020-12-27 11:30:50 -06:00
|
|
|
- uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 11
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/wrapper
|
|
|
|
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}
|
|
|
|
- name: Unit tests
|
|
|
|
run: |
|
2021-05-19 17:40:21 -05:00
|
|
|
./gradlew testFdroidDebugUnitTest --stacktrace
|
|
|
|
./gradlew jacocoTestReport --stacktrace
|
2020-12-27 11:30:50 -06:00
|
|
|
- uses: codecov/codecov-action@v1
|
|
|
|
with:
|
|
|
|
flags: unit
|