Android-Password-Store/.github/workflows/pull_request.yml
Harsh Shandilya bea3cd5457
CI workflow improvements (#642)
* github: Only run debug tasks in PRs

* github: Remove nightly deploys

* github: Setup automatic debug branch deployment

* Tweak Gradle config in CI

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>

Co-authored-by: Aditya Wasan <adityawasan55@gmail.com>
2020-02-25 15:22:05 +05:30

24 lines
745 B
YAML

on: pull_request
name: Check pull request
jobs:
test-pr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: gradle-${{ runner.os }}-${{ hashFiles('**/build.gradle') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/dependencies.gradle') }}
- run: ./gradlew spotlessCheck assembleDebug testDebug lintDebug -Dpre-dex=false
- uses: actions/upload-artifact@master
with:
name: Debug APK
path: app/build/outputs/apk/debug/app-debug.apk