From 94e52b25fcf6eb80e85365fa0cbf0cddf2941d80 Mon Sep 17 00:00:00 2001 From: Paul Schmiedmayer Date: Tue, 25 Oct 2022 22:21:16 -0700 Subject: [PATCH] Simplify SPM Xcodebuild GitHub Action (#13) --- .../workflows/build-and-test-xcodebuild-spm.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-and-test-xcodebuild-spm.yml b/.github/workflows/build-and-test-xcodebuild-spm.yml index c2a9d17..5859a3d 100644 --- a/.github/workflows/build-and-test-xcodebuild-spm.yml +++ b/.github/workflows/build-and-test-xcodebuild-spm.yml @@ -21,10 +21,6 @@ on: required: false type: string default: '' - targetname: - description: 'Name of the target in the Swift Package. Required for generating a test coverage.' - required: true - type: string jobs: build_and_test: @@ -44,20 +40,17 @@ jobs: swift --version echo "inputs.path: ${{ inputs.path }}" echo "inputs.scheme: ${{ inputs.scheme }}" - echo "inputs.targetname: ${{ inputs.targetname }}" - name: Build and Test run: | - INPUT_SCHEME=${{ inputs.scheme }} - SCHEME=${INPUT_SCHEME:-"${{ inputs.targetname }}-Package"} xcodebuild test \ - -scheme $SCHEME \ + -scheme ${{ inputs.scheme }} \ -sdk iphonesimulator \ -destination "name=iPhone 14 Pro Max" \ -enableCodeCoverage YES \ - -resultBundlePath ${{ inputs.targetname }}.xcresult \ + -resultBundlePath ${{ inputs.scheme }}.xcresult \ CODE_SIGNING_ALLOWED="NO" - name: Upload Artifact uses: actions/upload-artifact@v3 with: - name: ${{ inputs.targetname }}.xcresult - path: ${{ inputs.targetname }}.xcresult + name: ${{ inputs.scheme }}.xcresult + path: ${{ inputs.scheme }}.xcresult