Skip to content

Merge pull request #783 from OneBusAway/deprecations #790

Merge pull request #783 from OneBusAway/deprecations

Merge pull request #783 from OneBusAway/deprecations #790

Workflow file for this run

name: OBAKitTests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
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 15
run: sudo xcode-select -switch /Applications/Xcode_16.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 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
# 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/[email protected]
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()