Release: 2.1.1-beta (#189) #327
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Run JVM Tests & Validate Screenshots | |
| timeout-minutes: 40 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| lfs: false | |
| - name: Setup Git LFS | |
| run: git lfs install | |
| # Only pull the screenshot reference PNGs, skip unrelated LFS files to save on bandwidth. | |
| - name: Pull screenshot LFS files | |
| run: git lfs pull --include="androidApp/src/screenshotTestDebug/reference/" | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Validate Screenshot Tests & Generate Coverage Reports | |
| run: ./gradlew :koverXmlReportDomain :koverXmlReportPresentation | |
| - name: Upload screenshot diffs on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: screenshot-diffs | |
| path: androidApp/build/reports/screenshotTest/ | |
| - name: Upload domain coverage to Codecov | |
| uses: codecov/codecov-action@v6 | |
| continue-on-error: true | |
| with: | |
| files: build/reports/kover/reportDomain.xml | |
| flags: domain | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Upload presentation coverage to Codecov | |
| uses: codecov/codecov-action@v6 | |
| continue-on-error: true | |
| with: | |
| files: build/reports/kover/reportPresentation.xml | |
| flags: presentation | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| android: | |
| name: Build Android | |
| needs: test | |
| timeout-minutes: 40 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Build Android App | |
| run: ./gradlew androidApp:assembleDebug | |
| ios: | |
| name: Build iOS | |
| needs: test | |
| timeout-minutes: 40 | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Build iOS | |
| run: | | |
| cd iosApp | |
| xcrun xcodebuild \ | |
| -scheme "iosApp" \ | |
| -configuration "Debug" \ | |
| -sdk "iphoneos" \ | |
| -destination "generic/platform=iOS" \ | |
| -allowProvisioningUpdates \ | |
| OBJROOT=./build/ios \ | |
| SYMROOT=./build/ios \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| | xcpretty |