-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (49 loc) · 1.64 KB
/
main-pr-checks.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
name: "CI / Android Debug Builds"
#
on:
pull_request:
types:
- opened # initially opened
- reopened # closed then opened again
- synchronize # any changes pushed
branches:
- main
paths-ignore: # Only run checks on changes to code
- "**/docs/*"
- "*/README.md"
jobs:
build:
name: "Setup and Build Project"
runs-on: [ubuntu-22.04]
if: github.event.pull_request.draft == false # ignore draft pull requests
# env:
#
# outputs:
#
steps:
- name: "Checkout Project"
uses: actions/checkout@v4
- name: "Setup Java 17"
uses: actions/setup-java@v4
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '17'
- name: "Setup Gradle"
uses: gradle/actions/setup-gradle@v3
- name: "Build: Assemble and Test Debug Binary"
run: ./gradlew :app-android:buildDebug
# - run: ./gradlew generate coverage report, upload test/coverage reports
- name: "Bundle: Generate Debug AAB"
run: ./gradlew :app-android:bundleDebug
# - name: "Upload: Send Release to Google Play Store"
# uses: google-github-actions/upload-google-play@main
# with:
# serviceAccountJson: ${{ secrets.GOOGLE_PLAY_JSON }}
# packageName: com.example.myapp
# bundleFile: app/build/outputs/bundle/release/app-release.aab
# track: internal
- name: "Upload: Send AABs to GitHub"
uses: actions/upload-artifact@v4
with:
name: app-android-debug
path: app-android/build/outputs/bundle/debug/app-android-debug.aab