Bump com.google.devtools.ksp from 2.2.20-2.0.3 to 2.3.0 #1619
Workflow file for this run
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: Unit tests | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Run Unit Tests | |
| runs-on: macos-14 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '17' | |
| cache: 'gradle' | |
| cache-dependency-path: | # optional | |
| **/*.gradle* | |
| **/gradle-wrapper.properties | |
| - name: Cache gradle, wrapper and buildSrc | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Run API Check | |
| run: ./gradlew apiCheck | |
| env: | |
| CI_FLOW: ${{ github.workflow }} | |
| - name: Run Lint | |
| run: ./gradlew lint | |
| env: | |
| CI_FLOW: ${{ github.workflow }} | |
| - name: Setup Xcode | |
| uses: maxim-lobanov/[email protected] | |
| with: | |
| xcode-version: 'latest-stable' | |
| - name: Prepare and open Simulator | |
| run: | | |
| xcrun simctl create iphone-15-pro "iPhone 15 Pro" | |
| xcrun simctl boot iphone-15-pro | |
| open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app | |
| - name: Run tests with code coverage | |
| run: ./gradlew check koverXmlReport | |
| env: | |
| CI_FLOW: ${{ github.workflow }} | |
| # DISABLED: Android instrumentation tests don't run yet on M1 see https://github.com/ReactiveCircus/android-emulator-runner/issues/392 | |
| # - name: Run Android instrumentation tests | |
| # uses: reactivecircus/android-emulator-runner@v2 | |
| # with: | |
| # api-level: 34 | |
| # target: google_apis | |
| # arch: arm64-v8a | |
| # force-avd-creation: false | |
| # emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
| # script: ./gradlew connectedCheck --stacktrace | |
| # env: | |
| # CI_FLOW: ${{ github.workflow }} | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/[email protected] | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |