mirror of
https://github.com/null2264/yokai.git
synced 2025-06-20 18:24:42 +00:00
* chore(deps): Update null2264/actions digest to 363cb9c * fix: Action was renamed --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Ahmad Ansori Palembani <46041660+null2264@users.noreply.github.com>
67 lines
1.9 KiB
YAML
67 lines
1.9 KiB
YAML
name: Build PR
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '**'
|
|
- '!**.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'
|
|
|
|
jobs:
|
|
build:
|
|
name: Build app
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Clone repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Android SDK
|
|
run: |
|
|
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager "build-tools;35.0.0"
|
|
|
|
- name: Setup Gradle
|
|
uses: null2264/actions/gradle-java-setup@363cb9cf3d66bd9c72ed6860142c6b2c121d7e94
|
|
with:
|
|
java: 17
|
|
distro: temurin
|
|
|
|
- name: Copy CI gradle.properties
|
|
run: |
|
|
mkdir -p ~/.gradle
|
|
cp .github/runner-files/ci-gradle.properties ~/.gradle/gradle.properties
|
|
|
|
- name: Build the app
|
|
run: ./gradlew assembleStandardRelease
|
|
|
|
- name: Run unit tests
|
|
run: ./gradlew testReleaseUnitTest testStandardReleaseUnitTest
|
|
|
|
- name: Publish test report
|
|
uses: mikepenz/action-junit-report@v5
|
|
if: success() || failure()
|
|
with:
|
|
include_passed: true
|
|
detailed_summary: true
|
|
report_paths: '**/build/test-results/test*/TEST-*.xml'
|
|
|
|
- name: Upload R8 APK to artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: arm64-v8a-${{ github.sha }}
|
|
path: app/build/outputs/apk/standard/release/app-standard-arm64-v8a-release-unsigned.apk
|
|
|
|
- name: Upload R8 mapping
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: mapping-${{ github.sha }}
|
|
path: app/build/outputs/mapping/standardRelease
|