Merge pull request #3 from anexia/SIANXSVC-1228 #40
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: iOS - Build | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
name: Build and analyse default scheme using xcodebuild command | |
runs-on: macos-13 | |
env: | |
PROJECT_NAME: AnexiaAutheticator | |
SCHEME: AnexiaAuthenticator | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Xcode version | |
uses: maxim-lobanov/[email protected] | |
with: | |
xcode-version: '15.2' | |
- name: Clean | |
run: | | |
xcodebuild clean -project ./TwoFas/${{env.PROJECT_NAME}}.xcodeproj -scheme ${{env.SCHEME}} -destination 'generic/platform=iOS' | |
- name: Build for Testing | |
run: | | |
xcodebuild build-for-testing -project ./TwoFas/${{env.PROJECT_NAME}}.xcodeproj -scheme ${{env.SCHEME}} -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=17.0.1,name=iPhone 15 Pro Max' CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO | |
- name: Run Tests | |
run: | | |
xcodebuild test-without-building -project ./TwoFas/${{env.PROJECT_NAME}}.xcodeproj -scheme ${{env.SCHEME}} -sdk iphonesimulator -destination 'platform=iOS Simulator,OS=17.0.1,name=iPhone 15 Pro Max' CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO |