mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: Test
|
|
|
|
on:
|
|
pull_request: {}
|
|
push:
|
|
branches: [master, develop]
|
|
|
|
jobs:
|
|
unit-tests:
|
|
name: Unit Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
~/.gradle/caches
|
|
~/.gradle/wrapper
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-gradle-
|
|
- name: Run unit tests
|
|
run: ./gradlew clean test --stacktrace -PallWarningsAsErrors=false
|
|
|
|
android-tests:
|
|
name: Android Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
~/.gradle/caches
|
|
~/.gradle/wrapper
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-gradle-
|
|
- name: Run android tests
|
|
run: ./gradlew clean assembleAndroidTest --stacktrace -PallWarningsAsErrors=false
|