2019-12-15 21:49:18 +00:00
|
|
|
on: pull_request
|
|
|
|
|
|
|
|
name: Check pull request
|
2019-10-02 05:14:16 +00:00
|
|
|
jobs:
|
2019-12-15 21:49:18 +00:00
|
|
|
test-pr:
|
2019-10-02 05:14:16 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2019-12-31 15:27:38 +00:00
|
|
|
|
2019-10-02 05:14:16 +00:00
|
|
|
- uses: actions/checkout@master
|
2019-12-31 15:27:38 +00:00
|
|
|
|
2020-02-25 09:52:05 +00:00
|
|
|
- name: Copy CI gradle.properties
|
|
|
|
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
|
|
|
|
2019-12-31 15:27:38 +00:00
|
|
|
- uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ~/.gradle/caches
|
|
|
|
key: gradle-${{ runner.os }}-${{ hashFiles('**/build.gradle') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/dependencies.gradle') }}
|
|
|
|
|
2020-02-25 09:52:05 +00:00
|
|
|
- run: ./gradlew spotlessCheck assembleDebug testDebug lintDebug -Dpre-dex=false
|
2019-12-31 15:27:38 +00:00
|
|
|
|
2019-10-13 06:01:47 +00:00
|
|
|
- uses: actions/upload-artifact@master
|
2019-10-02 05:14:16 +00:00
|
|
|
with:
|
2019-10-13 06:01:47 +00:00
|
|
|
name: Debug APK
|
|
|
|
path: app/build/outputs/apk/debug/app-debug.apk
|