Skip to content

Commit

Permalink
Merge pull request #55 from OneBusAway/swift-package-manager
Browse files Browse the repository at this point in the history
Modify OTPKit repo to Swift Package
  • Loading branch information
aaronbrethorst authored Aug 14, 2024
2 parents 4baf99f + a867b12 commit 8a21c08
Show file tree
Hide file tree
Showing 70 changed files with 545 additions and 157 deletions.
61 changes: 23 additions & 38 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,4 @@ fastlane/test_output

iOSInjectionProject/

OTPKit.xcodeproj
OTPKitDemo/Info.plist
OTPKit/Info.plist
OTPKitTests/Info.plist
*.xcresult
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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>
Loading

0 comments on commit 8a21c08

Please sign in to comment.