Skip to content

Merge pull request #711 from OneBusAway/mta #717

Merge pull request #711 from OneBusAway/mta

Merge pull request #711 from OneBusAway/mta #717

Workflow file for this run

name: OBAKitTests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: macos-13
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: .build
key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
restore-keys: |
${{ runner.os }}-spm-
- name: Switch Xcode 15
run: sudo xcode-select -switch /Applications/Xcode_15.0.1.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 15'
-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 15'
-resultBundlePath OBAKitTests.xcresult
-quiet
# note 2021-10-22 (@ualch9): disabled for now, since there are no UI tests.
# UI Test
#- name: OBAKit UI Test
# run: xcodebuild test-without-building
# -only-testing:OBAKitUITests
# -project 'OBAKit.xcodeproj'
# -scheme 'App'
# -destination 'platform=iOS Simulator,OS=16.2,name=iPhone 14'
# -resultBundlePath OBAKitUITests.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
# OBAKitUITests.xcresult # note 2021-10-22 (@ualch9): disabled for now, since there are no UI tests.
if: success() || failure()