Last active
February 20, 2023 19:31
-
-
Save UmutSERIFLER/7ee5ba41798e198097b51fff1cb0bc68 to your computer and use it in GitHub Desktop.
Clean Build Test Project
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 Project Workflow | |
on: | |
push: | |
branches: [ "develop" ] | |
jobs: | |
clean_build_test: | |
runs-on: macos-latest | |
env: | |
ProjectName: SampleProject | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Clean Project | |
run: | | |
xcodebuild clean -project ${{ env.ProjectName }}.xcodeproj -scheme ${{ env.ProjectName }} -destination 'generic/platform=iOS' | |
- name: Build For Testing | |
run: | | |
xcodebuild build-for-testing -scheme ${{ env.ProjectName }} -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.2' | |
- name: Test Without Building | |
run: | | |
xcodebuild test-without-building -scheme ${{ inputs.projectName }} -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.2' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment