Skip to content

Merge pull request #1054 from diveshpatil9104/fix/disable-crashlytics… #1273

Merge pull request #1054 from diveshpatil9104/fix/disable-crashlytics…

Merge pull request #1054 from diveshpatil9104/fix/disable-crashlytics… #1273

Workflow file for this run

name: OBAKitTests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# GitHub macOS Runner images are documented at:
# https://github.com/actions/runner-images?tab=readme-ov-file
# Installed versions of Xcode on macOS 15 are documented at:
# https://github.com/actions/runner-images/blob/main/images/macos/macos-15-Readme.md
jobs:
build:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Switch Xcode
# FIX: Updated from 26.0 to 26.2 because 26.0 was removed in the Jan 27 update
run: sudo xcode-select -switch /Applications/Xcode_26.2.app
- name: Install xcodegen
run: brew install xcodegen
- name: Generate xcodeproj for OneBusAway
run: scripts/generate_project OneBusAway
# Build
- name: Build OneBusAway
run: xcodebuild clean build-for-testing
-scheme 'App'
-destination 'platform=iOS Simulator,name=iPhone 16'
-quiet
# Unit Test
- name: OBAKit Unit Test
run: xcodebuild test-without-building
-only-testing:OBAKitTests
-project 'OBAKit.xcodeproj'
-scheme 'App'
-destination 'platform=iOS Simulator,name=iPhone 16'
-resultBundlePath OBAKitTests.xcresult
-quiet
# Upload results
- uses: kishikawakatsumi/xcresulttool@v1.7.0
continue-on-error: true
with:
show-passed-tests: false # Avoid truncation of annotations by GitHub by omitting succeeding tests.
path: |
OBAKitTests.xcresult
if: success() || failure()