Skip to content

Commit

Permalink
SIANXSVC-1225: reorder steps, add path to project in ios.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anx-bkelhar authored Mar 14, 2024
1 parent e519fb5 commit c637797
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Build and analyse default scheme using xcodebuild command
runs-on: macos-latest
env:
ProjectName: AnexiaAuthenticator
PROJECT_NAME: AnexiaAutheticator
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -22,20 +22,20 @@ jobs:
default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]")
echo $default | cat >default
echo Using default scheme: $default
- name: Build/Release Action
uses: hectorguerrini/[email protected]
- name: Clean Project
- name: Clean
env:
scheme: ${{ 'default' }}
run: |
xcodebuild clean -project ./TwoFas/AnexiaAuthenticator.xcodeproj -scheme AnexiaAuthenticator -destination 'generic/platform=iOS'
- name: Build For Testing
working-directory: ./TwoFas
xcodebuild clean -project ./TwoFas/${{env.PROJECT_NAME}}.xcodeproj -scheme "$scheme" -destination 'generic/platform=iOS'
- name: Build
env:
scheme: ${{ 'default' }}
run: |
xcodebuild build-for-testing -scheme AnexiaAuthenticator -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.2'
- name: Test Without Building
working-directory: ./TwoFas
xcodebuild build-for-testing -scheme "$scheme" -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.2'
- name: Run Tests
run: |
xcodebuild test-without-building -scheme AnexiaAuthenticator -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.2'
- name: Build
uses: yukiarrr/ios-build-action@v1.11.2
xcodebuild test-without-building -scheme "$scheme" -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.2'
- name: Build/Release
uses: hectorguerrini/build-ios-action@v1.0.4


0 comments on commit c637797

Please sign in to comment.