Skip to content

Pp 194 merge capture sdk example app into bank sdk example app #362

Pp 194 merge capture sdk example app into bank sdk example app

Pp 194 merge capture sdk example app into bank sdk example app #362

name: Check Bank API Library
on:
pull_request:
types: [opened, edited, reopened, synchronize]
paths:
- 'BankAPILibrary/**'
workflow_call:
secrets:
GINI_MOBILE_TEST_CLIENT_SECRET:
required: true
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-check
cancel-in-progress: ${{ !contains(github.ref, 'refs/tags/')}}
jobs:
check:
runs-on: macos-latest
strategy:
matrix:
target: [GiniBankAPILibrary, GiniBankAPILibraryPinning]
destination: ['platform=iOS Simulator,OS=17.2,name=iPhone SE (3rd generation)', 'platform=iOS Simulator,OS=17.5,name=iPhone 15']
steps:
- uses: maxim-lobanov/[email protected]
with:
xcode-version: '15.3'
- name: Checkout
uses: actions/checkout@v4
- name: Check package GiniBankAPILibrary
if: ${{ matrix.target == 'GiniBankAPILibrary' }}
run: |
cd BankAPILibrary/GiniBankAPILibrary
swift package update
- name: Check package GiniBankAPILibraryPinning
if: ${{ matrix.target == 'GiniBankAPILibraryPinning' }}
run: |
cd BankAPILibrary/GiniBankAPILibraryPinning
swift package update
- name: Build sdk targets
run: |
xcodebuild -workspace GiniMobile.xcworkspace -scheme "${{ matrix.target }}" -destination "${{ matrix.destination }}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO
- name: Run unit tests
run: |
xcodebuild clean test -workspace GiniMobile.xcworkspace -scheme "${{ matrix.target }}Tests" -destination "${{ matrix.destination }}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO