Skip to content

Instantly share code, notes, and snippets.

@UmutSERIFLER
Last active February 20, 2023 19:31
Show Gist options
  • Save UmutSERIFLER/7ee5ba41798e198097b51fff1cb0bc68 to your computer and use it in GitHub Desktop.
Save UmutSERIFLER/7ee5ba41798e198097b51fff1cb0bc68 to your computer and use it in GitHub Desktop.
Clean Build Test Project
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