mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2024-11-27 04:43:30 -06:00
35 lines
907 B
YAML
35 lines
907 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, develop ]
|
|
tags: [ '*' ]
|
|
pull_request:
|
|
branches: [ master, develop ]
|
|
|
|
jobs:
|
|
unit-tests:
|
|
name: Unit tests
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: fkirc/skip-duplicate-actions@master
|
|
- uses: actions/checkout@v2
|
|
- uses: gradle/wrapper-validation-action@v1
|
|
- 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: |
|
|
./gradlew testFdroidDebugUnitTest --stacktrace
|
|
./gradlew jacocoTestReport --stacktrace
|
|
- uses: codecov/codecov-action@v1
|
|
with:
|
|
flags: unit
|