Skip to content

Feature/22900 booking providers (#380) #888

Feature/22900 booking providers (#380)

Feature/22900 booking providers (#380) #888

Workflow file for this run

name: Swift
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
build_spm:
runs-on: macos-14
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: actions/checkout@v4
- name: Build
run: swift build --target TripKit
build_spm_ventura:
runs-on: macos-13
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 14.2
- uses: actions/checkout@v4
- name: Build
run: swift build --target TripKit
build_xcode:
runs-on: macos-14
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: actions/checkout@v3
- name: Build TripKit Mac
run: xcodebuild build -quiet -project TripKit.xcodeproj -scheme "TripKit-macOS"
- name: Build TripKitUI iOS
run: xcodebuild build -quiet -project TripKit.xcodeproj -scheme "TripKitUI-iOS" -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16'
- name: Build TripKitInterApp iOS
run: xcodebuild build -quiet -project TripKit.xcodeproj -scheme "TripKitInterApp-iOS" -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16'
test_xcode:
runs-on: macos-14
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: actions/checkout@v4
- name: Run tests
env:
TRIPGO_API_KEY: ${{ secrets.TRIPGO_API_KEY }}
run: |
xcodebuild test -quiet -project TripKit.xcodeproj -scheme "TripKit-iOS" -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16' -resultBundlePath TestResults
# - uses: kishikawakatsumi/xcresulttool@v1 # NOT YET COMPATIBLE WITH XCODE 16
# with:
# path: TestResults.xcresult
# if: success() || failure()
# # ^ This is important because the action will be run
# # even if the test fails in the previous step.
examples:
runs-on: macos-14
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- uses: actions/checkout@v4
- name: Build TripKitUIExample
run: xcodebuild build -quiet -project TripKit.xcodeproj -scheme TripKitUIExample -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16'
- name: Build MiniMap
run: |
cd Examples/MiniMap
pod install
xcodebuild build -quiet -workspace MiniMap.xcworkspace -scheme MiniMap
- name: Build CocoaPodsTest
run: |
cd Examples/CocoaPodsTest
pod install
xcodebuild build -workspace CocoaPodsTest.xcworkspace -scheme CocoaPodsTest -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 16' CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO