Update Package.resolved, which somehow was missed in my last commit #743
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: 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/[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() |