mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 21:48:04 -05:00
72 lines
1.8 KiB
YAML
72 lines
1.8 KiB
YAML
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/checkout@v3.1.0
|
|
- 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/upload-artifact@v3.1.1
|
|
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/upload-artifact@v3.1.1
|
|
with:
|
|
name: runner-log
|
|
path: /Users/runner/Library/Logs/gym/
|
|
retention-days: 1 |