#tech added badges into the Readme file #21
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: build | |
# Controls when the action will run. | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '**' | |
types: [ opened, edited, synchronize, reopened ] | |
jobs: | |
build: | |
name: Build and Test project | |
runs-on: macos-13 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Force xcode 14.3.1 | |
run: | | |
sudo xcode-select -switch /Applications/Xcode_14.3.1.app | |
- name: Build | |
run: | | |
# Check only for ThirdPartyAuthUI scheme, because it also import ThirdPartyAuth module | |
xcodebuild clean build -scheme ThirdPartyAuthUI -destination "platform=iOS Simulator,name=iPhone 14" | |
- name: Test | |
run: | | |
xcodebuild test -scheme ThirdPartyAuth -destination "platform=iOS Simulator,name=iPhone 14" | |
xcodebuild test -scheme ThirdPartyAuthUI -destination "platform=iOS Simulator,name=iPhone 14" |