Merge pull request #564 from SourcePointUSA/add_tests_for_legacy_usps… #1417
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ develop, legacy/v6 ] | |
pull_request: | |
branches: [ develop, legacy/v6 ] | |
defaults: | |
run: | |
working-directory: Example | |
jobs: | |
lint: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: linting | |
run: swiftlint lint | |
BuildSwiftPackage: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Building Swift Package | |
run: xcodebuild clean build -scheme SPMBuild -workspace ConsentViewController.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.2' | |
- uses: actions/upload-artifact@v2 | |
if: failure() | |
name: Upload Swift Package build results | |
with: | |
path: /Users/runner/Library/Developer/Xcode/DerivedData/**/*.xcresult | |
BuildCarthageProject: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Building Carthage Project | |
run: cd ./SPCarthageTest && ./build.sh | |
ObjC-ExampleApp-tests: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: ObjC-ExampleApp testing -> iPhone 14 Pro (iOS 16.2) | |
run: xcodebuild test -scheme ObjC-ExampleApp -workspace ConsentViewController.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.2' | |
- uses: actions/upload-artifact@v2 | |
if: failure() | |
name: Upload ObjCExampleApp tests results | |
with: | |
path: /Users/runner/Library/Developer/Xcode/DerivedData/**/*.xcresult | |
ConsentViewController: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: ConsentViewController testing -> iPhone 14 Pro (iOS 16.2) | |
run: xcodebuild test -scheme ConsentViewController_Example -workspace ConsentViewController.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.2' | |
- uses: actions/upload-artifact@v2 | |
if: failure() | |
name: Upload ConsentViewController tests results | |
with: | |
path: /Users/runner/Library/Developer/Xcode/DerivedData/**/*.xcresult | |
AuthExample-tests: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: ConsentViewController testing -> iPhone 14 Pro (iOS 16.2) | |
run: xcodebuild test -scheme AuthExample -workspace ConsentViewController.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.2' | |
- uses: actions/upload-artifact@v2 | |
if: failure() | |
name: Upload ConsentViewController tests results | |
with: | |
path: /Users/runner/Library/Developer/Xcode/DerivedData/**/*.xcresult | |
NativePMExampleApp: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: ConsentViewController testing -> Apple TV (tvOS 16.1) | |
run: xcodebuild test -scheme NativePMExampleApp -workspace ConsentViewController.xcworkspace -destination 'platform=tvOS Simulator,name=Apple TV,OS=16.1' | |
- uses: actions/upload-artifact@v2 | |
if: failure() | |
name: Upload NativePMExampleApp tests results | |
with: | |
path: /Users/runner/Library/Developer/Xcode/DerivedData/**/*.xcresult |