-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SIANXSVC-1225: reorder steps, add path to project in ios.yml
- Loading branch information
1 parent
e519fb5
commit c637797
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
||
|