-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from OneBusAway/swift-package-manager
Modify OTPKit repo to Swift Package
- Loading branch information
Showing
70 changed files
with
545 additions
and
157 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,48 +2,33 @@ name: OTPKitTests | |
|
||
on: | ||
push: | ||
branches: [ main ] | ||
branches: [main] | ||
pull_request: | ||
branches: [ main ] | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- 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 OTPKit | ||
run: xcodegen | ||
|
||
# Build | ||
- name: Build OneBusAway | ||
run: xcodebuild clean build-for-testing | ||
-scheme 'OTPKitDemo' | ||
-destination 'platform=iOS Simulator,name=iPhone 15' | ||
-quiet | ||
|
||
# Unit Test | ||
- name: OBAKit Unit Test | ||
run: xcodebuild test-without-building | ||
-only-testing:OTPKitTests | ||
-project 'OTPKit.xcodeproj' | ||
-scheme 'OTPKitDemo' | ||
-destination 'platform=iOS Simulator,name=iPhone 15' | ||
-resultBundlePath OTPKitTests.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: | | ||
OTPKitTests.xcresult | ||
if: success() || failure() | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Switch Xcode 15 | ||
run: sudo xcode-select -switch /Applications/Xcode_15.0.1.app | ||
|
||
# Build | ||
- name: Build OTPKit | ||
run: | | ||
xcodebuild build-for-testing \ | ||
-scheme OTPKit \ | ||
-destination "platform=iOS Simulator,name=iPhone 15,OS=latest" \ | ||
-enableCodeCoverage YES | ||
# 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: | | ||
OTPKitTests.xcresult | ||
if: success() || failure() |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
.swiftpm/xcode/package.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
Oops, something went wrong.