Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify OTPKit repo to Swift Package #55

Merged
merged 6 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading