fix(deps): update kotest to v6.2.2 (#218) #595
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 APKs | |
| on: | |
| workflow_dispatch: | |
| merge_group: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| - ready_for_review | |
| env: | |
| GRADLE_OPTS: -Dorg.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=1024m -Dfile.encoding=UTF-8 -XX:+HeapDumpOnOutOfMemoryError -XX:+UseG1GC -Dkotlin.daemon.jvm.options=-Xmx4096m | |
| CI_GRADLE_ARG_PROPERTIES: "--stacktrace" | |
| permissions: {} | |
| jobs: | |
| build: | |
| name: Build APKs | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| variant: [ debug, release ] | |
| fail-fast: false | |
| concurrency: | |
| group: ${{ github.ref == 'refs/heads/master' && format('build-master-{0}-{1}', matrix.variant, github.sha) || format('build-{0}-{1}', matrix.variant, github.ref) }} | |
| cancel-in-progress: true | |
| steps: | |
| - name: Free Disk Space (Ubuntu) | |
| uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be | |
| with: | |
| # This might remove tools that are actually needed, if set to "true" but frees about 6 GB | |
| tool-cache: true | |
| # All of these default to true, but we should only need the 'android' one (and maybe swap-storage?) | |
| android: false | |
| dotnet: true | |
| haskell: true | |
| # This takes way too long to run (~2 minutes) and it saves only ~5.5GB | |
| large-packages: false | |
| docker-images: true | |
| swap-storage: false | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| # See: https://github.com/actions/checkout/issues/881 | |
| ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }} | |
| persist-credentials: false | |
| - name: Configure JDK | |
| uses: actions/setup-java@1bcf9fb12cf4aa7d266a90ae39939e61372fe520 # v5.4.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Validate Gradle Wrapper | |
| uses: gradle/actions/wrapper-validation@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0 | |
| - name: Restore Cache | |
| uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Export AboutLibraries library definitions | |
| # Used to run only once | |
| if: matrix.variant == 'debug' | |
| run: ./gradlew :android-app:exportLibraryDefinitions --dependency-verification lenient --continue $CI_GRADLE_ARG_PROPERTIES | |
| - name: Assemble debug APKs | |
| id: projectkafka-build | |
| if: matrix.variant == 'debug' | |
| run: ./gradlew :android-app:assembleDebug $CI_GRADLE_ARG_PROPERTIES | |
| - name: Upload debug APKs | |
| id: projectkafka-upload | |
| if: matrix.variant == 'debug' | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: projectkafka-debug | |
| path: | | |
| app/build/outputs/apk/debug/*-debug.apk | |
| - name: Create app token for PR comments | |
| if: matrix.variant == 'debug' && github.event_name == 'pull_request' && steps.projectkafka-upload.conclusion == 'success' && github.repository == github.event.pull_request.head.repo.full_name | |
| uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 | |
| id: app-token | |
| with: | |
| client-id: ${{ vars.HANEKOKORO_BOT_CLIENT_ID }} | |
| private-key: ${{ secrets.HANEKOKORO_BOT_PRIVATE_KEY }} | |
| - name: Comment on PR for artifacts link | |
| if: matrix.variant == 'debug' && github.event_name == 'pull_request' && steps.projectkafka-upload.conclusion == 'success' && github.repository == github.event.pull_request.head.repo.full_name | |
| uses: NejcZdovc/comment-pr@a423635d183a8259308e80593c96fecf31539c26 # v2.1.0 | |
| with: | |
| message: | | |
| **Download Debug Artifacts**: [projectkafka-debug.zip](https://nightly.link/ShadowRZ/ProjectKafka/actions/artifacts/${{ steps.projectkafka-upload.outputs.artifact-id }}.zip) | |
| # Enables to identify and update existing Ad-hoc release message on new commit in the PR | |
| identifier: "PROJECTKAFKA_COMMENT_ARTIFACTS" | |
| env: | |
| GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
| - name: Compile release sources | |
| if: ${{ matrix.variant == 'release' }} | |
| run: ./gradlew :android-app:assembleRelease $CI_GRADLE_ARG_PROPERTIES | |
| - name: Save Cache | |
| uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| if: github.event_name != 'pull_request' | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} |