forked from github/wulkanowy-mirror
ffc0cd840b
Co-authored-by: Mikołaj Pich <m.pich@outlook.com>
89 lines
2.5 KiB
YAML
89 lines
2.5 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master, develop ]
|
|
tags: [ '*' ]
|
|
pull_request:
|
|
branches: [ master, develop ]
|
|
|
|
jobs:
|
|
|
|
tests-fdroid:
|
|
name: F-Droid
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: fkirc/skip-duplicate-actions@master
|
|
- uses: actions/checkout@v3
|
|
- uses: gradle/wrapper-validation-action@v1
|
|
- uses: actions/setup-java@v2
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: 11
|
|
- uses: actions/cache@v3
|
|
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@v3
|
|
with:
|
|
flags: unit
|
|
|
|
tests-play:
|
|
name: Play
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: fkirc/skip-duplicate-actions@master
|
|
- uses: actions/checkout@v3
|
|
- uses: gradle/wrapper-validation-action@v1
|
|
- uses: actions/setup-java@v2
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: 11
|
|
- uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.gradle/caches
|
|
~/.gradle/wrapper
|
|
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}
|
|
- name: Unit tests
|
|
run: |
|
|
./gradlew testPlayDebugUnitTest --stacktrace
|
|
./gradlew jacocoTestReport --stacktrace
|
|
- uses: codecov/codecov-action@v3
|
|
with:
|
|
flags: unit
|
|
|
|
tests-hms:
|
|
name: HMS
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: fkirc/skip-duplicate-actions@master
|
|
- uses: actions/checkout@v3
|
|
- uses: gradle/wrapper-validation-action@v1
|
|
- uses: actions/setup-java@v2
|
|
with:
|
|
distribution: 'zulu'
|
|
java-version: 11
|
|
- uses: actions/cache@v3
|
|
with:
|
|
path: |
|
|
~/.gradle/caches
|
|
~/.gradle/wrapper
|
|
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}
|
|
- name: Unit tests
|
|
run: |
|
|
./gradlew testHmsDebugUnitTest --stacktrace
|
|
./gradlew jacocoTestReport --stacktrace
|
|
- uses: codecov/codecov-action@v3
|
|
with:
|
|
flags: unit
|