-
Notifications
You must be signed in to change notification settings - Fork 9
71 lines (65 loc) · 2.43 KB
/
pull-request.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Pull Request CI
on: pull_request
jobs:
build-debug:
runs-on: ubuntu-latest
name: Build app (debug)
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build app
uses: ./.github/actions/build-gradle
with:
gradle-arguments: :app:assembleDebug
upload-name: app-debug.apk
upload-path: app/build/outputs/apk/debug/app-debug.apk
skip-signing: true
transcrypt-cipher: "" # TODO: Make optional
transcrypt-password: "" # TODO: Make optional
app-keystore-password: "" # TODO: Make optional
app-keystore-alias: "" # TODO: Make optional
skip-attestation: true
unit-tests:
runs-on: ubuntu-latest
name: Unit tests
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run unit tests
uses: ./.github/actions/build-gradle
with:
gradle-arguments: test testAggregatedReport --continue
upload-name: unit-test-results
upload-path: ./**/build/reports/tests/
skip-signing: true
transcrypt-cipher: "" # TODO: Make optional
transcrypt-password: "" # TODO: Make optional
app-keystore-password: "" # TODO: Make optional
app-keystore-alias: "" # TODO: Make optional
app-keystore-alias-password: "" # TODO: Make optional app-keystore-alias-password: "" # TODO: Make optional
skip-attestation: true
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run lint task
uses: ./.github/actions/build-gradle
with:
gradle-arguments: :app:lint
upload-name: lint-output
# See https://googlesamples.github.io/android-custom-lint-rules/usage/agp-dsl.md.html
# on where lint reports are outputted
upload-path: app/build/reports/
skip-signing: true
transcrypt-cipher: "" # TODO: Make optional
transcrypt-password: "" # TODO: Make optional
app-keystore-password: "" # TODO: Make optional
app-keystore-alias: "" # TODO: Make optional
app-keystore-alias-password: "" # TODO: Make optional
skip-attestation: true
- name: Upload lint report
uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: app/build/reports/lint-results-debug.sarif