Skip to content

Commit

Permalink
pass value
Browse files Browse the repository at this point in the history
  • Loading branch information
wendyliga committed Jan 15, 2024
1 parent f9c7454 commit c6c81d5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
description: 'The Xcode version to run the job on'
required: true
type: string
device:
description: 'The device to run the job on'
required: true
type: string

jobs:

Expand Down Expand Up @@ -41,7 +45,7 @@ jobs:
- name: Select Xcode ${{ inputs.xcode }}
run: sudo xcode-select -s /Applications/Xcode_${{ inputs.xcode }}.app
- name: Run tests
run: make test-example
run: make test-example ${{ inputs.device }}

lint_podspec:
runs-on: ${{ inputs.os }}
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,15 @@ jobs:
include:
- os: macos-13
xcode: '15.0.1'
device: 'iPhone 15'
- os: macos-13
xcode: '14.3.1'
device: 'iPhone 14'
- os: macos-12
xcode: '13.4.1'
device: 'iPhone 13'
uses: ./.github/workflows/base.yml
with:
os: ${{ matrix.os }}
xcode: ${{ matrix.xcode }}
xcode: ${{ matrix.xcode }}
device: ${{ matrix.device }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test-example:
xcodebuild test \
-project Examples.xcodeproj \
-scheme Examples \
-destination "platform=iOS Simulator"
-destination "platform=iOS Simulator,name=$1"
-derivedDataPath ../derivedData \
| xcpretty \
&& rm -rf ../derivedData
Expand Down

0 comments on commit c6c81d5

Please sign in to comment.