Skip to content

Allow device identifier to be passed as a parameter #105

Allow device identifier to be passed as a parameter

Allow device identifier to be passed as a parameter #105

Workflow file for this run

name: Unit Tests
on:
push:
paths:
- '.github/workflows/unittests.yml'
- 'Package.swift'
- 'Sources/**/*.swift'
- 'Samples/**/*.swift'
- 'Tests/**/*.swift'
branches:
- master
- dev-*
- release-*
pull_request:
branches:
- master
- dev-*
- release-*
paths:
- '.github/workflows/unittests.yml'
- 'Package.swift'
- 'Sources/**/*.swift'
- 'Samples/**/*.swift'
- 'Tests/**/*.swift'
env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
NSUnbufferedIO: YES
jobs:
SwiftBuild:
name: Swift Unit Tests
runs-on: macos-12
timeout-minutes: 10
steps:
- uses: actions/checkout@master
- name: Build
run: swift build --build-tests
- name: Test
run: swift test
Cocoapods:
name: CocoaPods Build
runs-on: macos-12
timeout-minutes: 10
needs:
- SwiftBuild
steps:
- uses: actions/checkout@master
- name: Lint CocoaPods
run: pod lib lint OktaIdx.podspec
XcodeBuild:
name: Xcode Unit Tests
runs-on: macos-12
timeout-minutes: 10
steps:
- uses: actions/checkout@master
- name: Test OktaIdx
run: |
set -o pipefail
env NSUnbufferedIO=YES xcodebuild test \
-derivedDataPath ../Build/DerivedData \
-clonedSourcePackagesDirPath ../Build/ClonedSources \
-workspace OktaIdx.xcworkspace \
-scheme OktaIdx \
-sdk iphonesimulator \
-destination "platform=iOS Simulator,OS=latest,name=iPhone 12" | xcpretty