Update README.md to replace feature graphic with a new banner image a… #14
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 & Test | |
| 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' | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build & Test App | |
| runs-on: 'ubuntu-24.04' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Dependency Review | |
| if: github.event_name == 'pull_request' | |
| uses: actions/dependency-review-action@3c4e3dcb1aa7874d2c16be7d79418e9b7efd6261 # v4.8.2 | |
| - name: Set up JDK | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| java-version: 17 | |
| distribution: temurin | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0 | |
| - name: Check code format | |
| run: ./gradlew spotlessCheck | |
| - name: Build app | |
| run: ./gradlew assembleRelease -Pinclude-telemetry -Penable-updater | |
| - name: Run unit tests | |
| id: unit_tests | |
| run: ./gradlew testReleaseUnitTest | |
| - name: Upload test report | |
| if: steps.unit_tests.outcome == 'failure' | |
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 | |
| with: | |
| name: test-report-${{ github.sha }} | |
| path: app/build/reports/tests/testReleaseUnitTest | |
| - name: Upload APK | |
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 | |
| with: | |
| name: arm64-v8a-${{ github.sha }} | |
| path: app/build/outputs/apk/release/app-arm64-v8a-release-unsigned.apk | |
| - name: Upload mapping | |
| uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 | |
| with: | |
| name: mapping-${{ github.sha }} | |
| path: app/build/outputs/mapping/release |