From c6c81d5f6d675c0ca148ddb0363bd70534fea23f Mon Sep 17 00:00:00 2001 From: Wendy Liga <16457495+wendyliga@users.noreply.github.com> Date: Mon, 15 Jan 2024 13:49:25 +0700 Subject: [PATCH] pass value --- .github/workflows/base.yml | 6 +++++- .github/workflows/ci.yml | 6 +++++- Makefile | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/base.yml b/.github/workflows/base.yml index 9dff6ea..e2f0460 100644 --- a/.github/workflows/base.yml +++ b/.github/workflows/base.yml @@ -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: @@ -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 }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a55cc0..3ae736a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} \ No newline at end of file + xcode: ${{ matrix.xcode }} + device: ${{ matrix.device }} \ No newline at end of file diff --git a/Makefile b/Makefile index 53a5477..10acfdd 100644 --- a/Makefile +++ b/Makefile @@ -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