Build plugins -> version catalog #153
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
shared: | |
name: Shared & Android app | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: '17' | |
- name: Build | |
run: ./gradlew spotlessCheck assembleDebug | |
- name: Test | |
run: ./gradlew testDebugUnitTest | |
- name: Publish Kotlin results | |
uses: dorny/[email protected] | |
if: always() | |
with: | |
name: Kotlin results | |
path: '**/build/test-results/**/TEST-*.xml' | |
reporter: java-junit | |
fail-on-error: true | |
ios: | |
name: iOS app | |
runs-on: macos-15 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Configure Xcode | |
uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '16.1' | |
- name: Setup JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: '17' | |
- name: Test | |
run: | | |
xcodebuild test -project ios/RunLog.xcodeproj \ | |
-scheme RunLog \ | |
-sdk iphonesimulator \ | |
-destination 'platform=iOS Simulator,name=iPhone 16,OS=18.1' \ | |
-resultBundlePath TestResults | |
- name: Publish iOS results | |
uses: slidoapp/[email protected] | |
if: always() | |
with: | |
title: iOS results | |
path: 'TestResults.xcresult' |