File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 required : false
2222 type : string
2323 default : ' '
24- targetname :
25- description : ' Name of the target in the Swift Package. Required for generating a test coverage.'
26- required : true
27- type : string
2824
2925jobs :
3026 build_and_test :
@@ -44,20 +40,17 @@ jobs:
4440 swift --version
4541 echo "inputs.path: ${{ inputs.path }}"
4642 echo "inputs.scheme: ${{ inputs.scheme }}"
47- echo "inputs.targetname: ${{ inputs.targetname }}"
4843 - name : Build and Test
4944 run : |
50- INPUT_SCHEME=${{ inputs.scheme }}
51- SCHEME=${INPUT_SCHEME:-"${{ inputs.targetname }}-Package"}
5245 xcodebuild test \
53- -scheme $SCHEME \
46+ -scheme ${{ inputs.scheme }} \
5447 -sdk iphonesimulator \
5548 -destination "name=iPhone 14 Pro Max" \
5649 -enableCodeCoverage YES \
57- -resultBundlePath ${{ inputs.targetname }}.xcresult \
50+ -resultBundlePath ${{ inputs.scheme }}.xcresult \
5851 CODE_SIGNING_ALLOWED="NO"
5952 - name : Upload Artifact
6053 uses : actions/upload-artifact@v3
6154 with :
62- name : ${{ inputs.targetname }}.xcresult
63- path : ${{ inputs.targetname }}.xcresult
55+ name : ${{ inputs.scheme }}.xcresult
56+ path : ${{ inputs.scheme }}.xcresult
You can’t perform that action at this time.
0 commit comments