Inji iOS Automation Build #15
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: Inji iOS Automation Build | |
on: | |
workflow_dispatch: | |
inputs: | |
mimotoBackendServiceUrl: | |
description: 'Mimoto backend service URL' | |
required: true | |
default: 'https://api.sandbox.mosip.net' | |
type: string | |
esignetBackendServiceUrl: | |
description: 'Esignet backend service URL' | |
required: true | |
default: 'https://api.sandbox.mosip.net' | |
type: string | |
theme: | |
description: 'Application Theme' | |
required: true | |
default: 'orange' | |
type: choice | |
options: | |
- orange | |
- purple | |
registry_edit: | |
description: 'Edit Registry' | |
required: true | |
default: 'true' | |
type: choice | |
options: | |
- false | |
- true | |
jobs: | |
build_ios: | |
name: Uploading app to Actions | |
runs-on: macos-13 | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: Install npm dependencies | |
run: | | |
npm install | |
- name: Install Pod | |
run: | | |
cd ios | |
pod install | |
pod install | |
- name: Build iOS for automation on simulator | |
run: | | |
cd ios | |
fastlane build_app_for_automation_on_simulator | |
- name: Upload Inji.app artifact | |
uses: actions/[email protected] | |
with: | |
name: Inji | |
path: ios/fastlane/Inji_app_file/Products/Applications/ | |
retention-days: 7 | |
- name: Upload Runner Log on Failure | |
if: failure() # Only run this step if the previous steps failed | |
uses: actions/[email protected] | |
with: | |
name: runner-log | |
path: /Users/runner/Library/Logs/gym/ | |
retention-days: 1 |