Skip to content

Create StateFlowWrapper for multiplatform use (#254) #620

Create StateFlowWrapper for multiplatform use (#254)

Create StateFlowWrapper for multiplatform use (#254) #620

Workflow file for this run

name: Android CI
on:
push:
branches:
- main
- dev
paths-ignore:
- '**.md'
- 'media/**'
pull_request:
paths-ignore:
- '**.md'
- 'media/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: set up JDK 17
uses: actions/[email protected]
with:
java-version: '17'
distribution: 'adopt'
- name: Setup Gradle
uses: gradle/[email protected]
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
env:
MONSTER_COMPENDIUM_KEYSTORE_PASSWORD: ${{ secrets.MONSTER_COMPENDIUM_KEYSTORE_PASSWORD }}
run: ./gradlew assembleRelease testReleaseUnitTest jvmTest -Pdev
- name: Verify database migration
run: chmod +x ./scripts/sqldelight/verifyDatabaseMigration && ./scripts/sqldelight/verifyDatabaseMigration
- name: Generate AAB
env:
MONSTER_COMPENDIUM_KEYSTORE_PASSWORD: ${{ secrets.MONSTER_COMPENDIUM_KEYSTORE_PASSWORD }}
run: ./gradlew bundleRelease
- name: Upload the test report
if: failure()
uses: actions/[email protected]
with:
name: TestReport
path: |
feature-monster-compendium/build/reports/tests
data/build/reports/tests
domain/build/reports/tests
- name: Upload an APK
uses: actions/[email protected]
with:
name: app-dev-release.apk
path: app/build/outputs/apk/release/app-dev-release.apk
- name: Upload an APK metadata JSON
uses: actions/[email protected]
with:
name: output-metadata.json
path: app/build/outputs/apk/release/output-metadata.json
- name: Upload an AAB
uses: actions/[email protected]
with:
name: app-release.aab
path: app/build/outputs/bundle/release/app-release.aab