2021-08-15 11:07:27 -04:00
|
|
|
name: PR build check
|
|
|
|
on:
|
|
|
|
pull_request:
|
2024-10-13 10:44:25 -04:00
|
|
|
paths:
|
2024-10-14 16:13:37 -04:00
|
|
|
- '**'
|
2024-10-13 10:44:25 -04:00
|
|
|
- '!**.md'
|
|
|
|
- '!i18n/src/commonMain/moko-resources/**/strings.xml'
|
|
|
|
- '!i18n/src/commonMain/moko-resources/**/plurals.xml'
|
|
|
|
- 'i18n/src/commonMain/moko-resources/base/strings.xml'
|
|
|
|
- 'i18n/src/commonMain/moko-resources/base/plurals.xml'
|
2021-08-15 11:07:27 -04:00
|
|
|
|
2022-08-10 22:51:01 -04:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-04-13 18:34:33 -04:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-08-15 11:07:27 -04:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build app
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Clone repo
|
2024-10-23 15:52:12 -04:00
|
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2021-08-15 11:07:27 -04:00
|
|
|
|
|
|
|
- name: Validate Gradle Wrapper
|
2024-11-15 07:47:37 -05:00
|
|
|
uses: gradle/actions/wrapper-validation@473878a77f1b98e2b5ac4af93489d1656a80a5ed # v4.2.0
|
2021-08-15 11:07:27 -04:00
|
|
|
|
2022-04-13 18:34:33 -04:00
|
|
|
- name: Dependency Review
|
2024-10-30 15:53:12 -04:00
|
|
|
uses: actions/dependency-review-action@4081bf99e2866ebe428fc0477b69eb4fcda7220a # v4.4.0
|
2022-04-13 18:34:33 -04:00
|
|
|
|
2023-04-16 18:02:24 -04:00
|
|
|
- name: Set up JDK
|
2024-10-25 21:23:13 -04:00
|
|
|
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
|
2021-08-15 11:07:27 -04:00
|
|
|
with:
|
2023-04-16 18:02:24 -04:00
|
|
|
java-version: 17
|
2022-05-10 17:53:19 -04:00
|
|
|
distribution: adopt
|
2021-08-15 11:07:27 -04:00
|
|
|
|
2024-02-01 15:20:28 -05:00
|
|
|
- name: Set up gradle
|
2024-11-15 07:47:37 -05:00
|
|
|
uses: gradle/actions/setup-gradle@473878a77f1b98e2b5ac4af93489d1656a80a5ed # v4.2.0
|
2024-02-01 15:20:28 -05:00
|
|
|
|
2022-05-19 13:44:13 -04:00
|
|
|
- name: Build app and run unit tests
|
2024-08-19 08:11:14 -04:00
|
|
|
run: ./gradlew spotlessCheck assembleStandardRelease testReleaseUnitTest testStandardReleaseUnitTest
|
2024-06-22 22:04:30 -04:00
|
|
|
|
|
|
|
- name: Upload APK
|
2024-10-23 17:56:06 -04:00
|
|
|
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
|
2024-06-22 22:04:30 -04:00
|
|
|
with:
|
|
|
|
name: arm64-v8a-${{ github.sha }}
|
|
|
|
path: app/build/outputs/apk/standard/release/app-standard-arm64-v8a-release-unsigned.apk
|
|
|
|
|
|
|
|
- name: Upload mapping
|
2024-10-23 17:56:06 -04:00
|
|
|
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
|
2024-06-22 22:04:30 -04:00
|
|
|
with:
|
|
|
|
name: mapping-${{ github.sha }}
|
|
|
|
path: app/build/outputs/mapping/standardRelease
|