Skip to content

Commit

Permalink
Create workflow for build and test with GA
Browse files Browse the repository at this point in the history
  • Loading branch information
osanoj authored Jan 22, 2024
1 parent 507aa8c commit 83e9b71
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: iOS starter workflow

on:
push:
branches: [ "master", "test_ga_build" ]
pull_request:
branches: [ "master" ]

jobs:
build:
name: Build and Test default scheme using any available iPhone simulator
runs-on: macos-13-arm64

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Default Scheme
run: |
scheme_list=$(xcodebuild -list -json | tr -d "\n")
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
env:
scheme: ${{ 'Demo' }}
destination: ${{ 'platform=iOS Simulator,OS=15.2,name=iPhone 13 Pro' }}
run: |
xcodebuild build-for-testing -scheme "$scheme" -workspace FinniversKit.xcworkspace -destination "$platform"
- name: Test
env:
scheme: ${{ 'Demo' }}
destination: ${{ 'platform=iOS Simulator,OS=15.2,name=iPhone 13 Pro' }}
run: |
xcodebuild test-without-building -scheme "$scheme" -workspace FinniversKit.xcworkspace -destination "$platform"

0 comments on commit 83e9b71

Please sign in to comment.