aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/pull_request.yml
blob: 283699b9f2baf54665d848166d7b4b440ee4cdfc (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
on: pull_request

name: Check pull request
jobs:
  test-pr:
    runs-on: ubuntu-latest
    steps:

    - uses: actions/checkout@master

    - 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 build test lintDebug -Dpre-dex=false

    - uses: actions/upload-artifact@master
      with:
        name: Debug APK
        path: app/build/outputs/apk/debug/app-debug.apk