diff --git a/pull_request_template.md b/.github/PULL_REQUEST_TEMPLATE/pull_request_template.md similarity index 100% rename from pull_request_template.md rename to .github/PULL_REQUEST_TEMPLATE/pull_request_template.md diff --git a/.github/workflows/okta-auth.yml b/.github/workflows/okta-auth.yml new file mode 100644 index 0000000..26d9f5d --- /dev/null +++ b/.github/workflows/okta-auth.yml @@ -0,0 +1,23 @@ +name: Okta Auth Swift + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + UnitTests: + runs-on: macos-11 + steps: + - uses: actions/checkout@v2 + - name: iOS + run: xcodebuild -workspace OktaAuthSdk.xcworkspace -scheme "OktaAuthNative iOS" -destination "platform=iOS Simulator,OS=latest,name=iPhone 11" clean test + - name: Swift + run: swift test -v + PackageValidation: + runs-on: macos-11 + steps: + - uses: actions/checkout@v2 + - name: Cocoapods + run: pod lib lint --allow-warnings diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 5bb67c6..0000000 --- a/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: objective-c -osx_image: xcode12.5 -jobs: - include: - - stage: Unit tests - name: iOS - script: - - xcodebuild -workspace OktaAuthSdk.xcworkspace -scheme "OktaAuthNative iOS" -destination "platform=iOS Simulator,OS=latest,name=iPhone 11" clean test - - stage: Dependency Manager Validation - name: SPM - script: - - swift test - - stage: Dependency Manager Validation - name: CocoaPods - script: - - pod lib lint --allow-warnings - # Disable carthage as it requires --use-xcframeworks. It's time-consuming operation. - # - stage: Dependency Manager Validation - # name: Carthage - # script: - # - carthage build --no-skip-current diff --git a/Package.swift b/Package.swift index 6a875c5..00a804e 100644 --- a/Package.swift +++ b/Package.swift @@ -12,7 +12,7 @@ let package = Package( .library(name: "OktaAuthNative", targets: ["OktaAuthNative"]) ], targets: [ - .target(name: "OktaAuthNative", dependencies: [], path: "Source", exclude: ["Source/Info.plist"]), + .target(name: "OktaAuthNative", dependencies: [], path: "Source", exclude: ["Info.plist"]), .testTarget(name: "OktaAuthNative_Tests", dependencies: ["OktaAuthNative"], path: "Tests", exclude: ["AuthenticationClientTests.swift"]) ] ) diff --git a/README.md b/README.md index 64adf50..8a5ac03 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,10 @@ -[![iOS_13 ready](https://img.shields.io/badge/iOS_13-ready-brightgreen.svg?style=for-the-badge)](https://github.com/okta/okta-auth-swift/releases/tag/2.0.1) - [](https://devforum.okta.com/) -[![CI Status](https://travis-ci.org/okta/okta-auth-swift.svg?branch=master)](https://travis-ci.org/okta/okta-auth-swift) +[![CI Status](https://github.com/okta/okta-auth-swift/actions/workflows/okta-auth.yml/badge.svg)](https://github.com/okta/okta-auth-swift/actions/) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![Version](https://img.shields.io/cocoapods/v/OktaAuthSdk.svg?style=flat)](http://cocoapods.org/pods/OktaAuthSdk) [![License](https://img.shields.io/cocoapods/l/OktaAuthSdk.svg?style=flat)](http://cocoapods.org/pods/OktaAuthSdk) [![Platform](https://img.shields.io/cocoapods/p/OktaAuthSdk.svg?style=flat)](http://cocoapods.org/pods/OktaAuthSdk) -[![Swift](https://img.shields.io/badge/swift-4.2-orange.svg?style=flat)](https://developer.apple.com/swift/) +[![Swift](https://img.shields.io/badge/swift-5.0-orange.svg?style=flat)](https://developer.apple.com/swift/) # Okta Swift Authentication SDK