LuK1337 | 4ddfd81 | 2022-08-23 00:07:40 +0200 | [diff] [blame] | 1 | name: build |
| 2 | |
| 3 | on: [push, pull_request] |
| 4 | |
| 5 | jobs: |
| 6 | build: |
| 7 | runs-on: ubuntu-latest |
| 8 | |
| 9 | steps: |
| 10 | - name: Checkout repo |
| 11 | uses: actions/checkout@v1 |
| 12 | |
| 13 | - name: Setup JDK 11 |
| 14 | uses: actions/setup-java@v1 |
| 15 | with: |
| 16 | java-version: 11 |
| 17 | |
| 18 | - name: Build with Gradle |
LuK1337 | b91628f | 2022-09-02 00:16:05 +0200 | [diff] [blame] | 19 | run: ./gradlew assembleDebug lint |
LuK1337 | 4ddfd81 | 2022-08-23 00:07:40 +0200 | [diff] [blame] | 20 | |
| 21 | - uses: actions/upload-artifact@v3 |
| 22 | with: |
| 23 | name: app-debug.apk |
| 24 | path: app/build/outputs/apk/debug/app-debug.apk |
LuK1337 | b91628f | 2022-09-02 00:16:05 +0200 | [diff] [blame] | 25 | |
| 26 | - uses: yutailang0119/action-android-lint@v3 |
| 27 | with: |
| 28 | report-path: app/build/reports/lint-results-debug.xml |
| 29 | continue-on-error: false |