Skip to content

chore(deps): update kotlin monorepo to v2 (major) #1448

chore(deps): update kotlin monorepo to v2 (major)

chore(deps): update kotlin monorepo to v2 (major) #1448

Workflow file for this run

name: test
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-test-android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: ./.github/actions/sdkman
- uses: ./.github/actions/konan
- uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3
with:
gradle-home-cache-cleanup: true
arguments: testDebugUnitTest --scan
- uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3
with:
gradle-home-cache-cleanup: true
arguments: jacocoMergedReport
- uses: EnricoMi/publish-unit-test-result-action@170bf24d20d201b842d7a52403b73ed297e6645b # v2
if: ${{ !cancelled() && (success() || failure()) }}
with:
check_name: Test Results android
files: |
**/test-results/**/*.xml
- uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
unit-test-ios:
runs-on: macos-14
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: ./.github/actions/sdkman
- uses: ./.github/actions/konan
- uses: ./.github/actions/xcode-select
- uses: ruby/setup-ruby@217c988b8c2bf2bacb2d5c78a7e7b18f8c34daed # v1.200.0
with:
bundler-cache: true
- uses: bazelbuild/setup-bazelisk@b39c379c82683a5f25d34f0d062761f62693e0b2 # v3
- run: make bootstrap-submodule
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
with:
path: |
build/bazel
Framework/Tink.xcframework
key: v2-bazel-${{ runner.os }}-${{ hashFiles('.git/modules/TinkStub/HEAD') }}
- uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3
id: framework
with:
files: "Framework/Tink.xcframework"
- run: make archive
if: steps.framework.outputs.files_exists != 'true'
- uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3
with:
gradle-home-cache-cleanup: true
arguments: iosX64Test --scan
- uses: EnricoMi/publish-unit-test-result-action/composite@170bf24d20d201b842d7a52403b73ed297e6645b # v2
if: ${{ !cancelled() && (success() || failure()) }}
with:
check_name: Unit Test Results iosX64
files: |
**/test-results/**/*.xml
instrumented-test-ios:
runs-on: macos-14
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: ./.github/actions/sdkman
- uses: ./.github/actions/konan
- uses: ./.github/actions/xcode-select
- uses: ruby/setup-ruby@217c988b8c2bf2bacb2d5c78a7e7b18f8c34daed # v1.200.0
with:
bundler-cache: true
- uses: bazelbuild/setup-bazelisk@b39c379c82683a5f25d34f0d062761f62693e0b2 # v3
- run: make bootstrap-submodule
- uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4
with:
path: |
build/bazel
Framework/Tink.xcframework
key: v2-bazel-${{ runner.os }}-${{ hashFiles('.git/modules/TinkStub/HEAD') }}
- uses: andstor/file-existence-action@076e0072799f4942c8bc574a82233e1e4d13e9d6 # v3
id: framework
with:
files: "Framework/Tink.xcframework"
- run: make archive
if: steps.framework.outputs.files_exists != 'true'
- uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3
with:
gradle-home-cache-cleanup: true
arguments: :iosApp:simulatorsList
- uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3
with:
gradle-home-cache-cleanup: true
arguments: :iosApp:xcodetest --scan --info
- uses: EnricoMi/publish-unit-test-result-action/composite@170bf24d20d201b842d7a52403b73ed297e6645b # v2
if: ${{ !cancelled() && (success() || failure()) }}
with:
check_name: Instrumented Test Results iosX64
files: |
**/test-results.xml