feature/ci-ios-build #184
Workflow file for this run
This file contains 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 & Ship | |
on: | |
pull_request: | |
merge_group: | |
jobs: | |
ui-tests: | |
runs-on: macos-latest | |
timeout-minutes: 25 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: 17 | |
distribution: 'adopt' | |
cache: 'gradle' | |
- name: Run instrumented tests | |
uses: ReactiveCircus/[email protected] | |
with: | |
api-level: 29 | |
script: ./gradlew connectedCheck | |
unit-tests-detekt-build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set Java 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Run Detekt | |
uses: eskatos/gradle-command-action@v2 | |
with: | |
arguments: detekt | |
- name: Run Unit Tests | |
run: ./gradlew test --stacktrace | |
- name: Assemble Debug | |
uses: eskatos/gradle-command-action@v2 | |
with: | |
arguments: assembleDebug | |
iOS-build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: check if iosApp/iosApp.xcworkspace exists | |
run: | | |
if [ ! -d "iosApp/iosApp.xcworkspace" ]; then | |
echo "iosApp/iosApp.xcworkspace does not exist" | |
exit 1 | |
fi | |
- name: Build macOS shared code | |
run: ./gradlew :shared:compileKotlinIosSimulatorArm64 | |
- name: Build iOS app | |
run: xcodebuild -workspace iosApp/iosApp.xcworkspace -configuration Debug -scheme iosApp -sdk iphonesimulator |