aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/pull_request.yml
blob: 9d4d1f0767fbfb19e001b9a398dc6512b7ddb018 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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