Skip to content

Commit

Permalink
[skip ci] wip
Browse files Browse the repository at this point in the history
  • Loading branch information
novr committed Jul 16, 2024
1 parent 76a265f commit 0f7f388
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- id: setmatrix
run: |
object="{\"targets\":[{\"scheme\": \"YumemiWeather\", \"dir\": \".\"}, {\"scheme\": \"Example\", \"dir\": \"Example\"}]}"
object="{\"targets\":[{\"scheme\":\"YumemiWeather\",\"dir\":\".\"},{\"scheme\":\"Example\",\"dir\":\"Example\"}]}"
echo "matrix=$object" >> $GITHUB_OUTPUT
test:
needs: setup
Expand All @@ -26,10 +26,15 @@ jobs:
contents: read
checks: write
strategy:
matrix: ${{ fromJson(needs.setup.outputs.matrix) }}
matrix: ${{fromJson(needs.setup.outputs.matrix)}}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: echo
run: |
echo ${{ matrix }}
echo ${{ matrix.dir }}
echo ${{ matrix.scheme }}
- name: Test
env:
platform: ${{ 'iOS Simulator' }}
Expand All @@ -38,7 +43,7 @@ jobs:
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"`
cd ${{ matrix.dir }}
xcodebuild -scheme "${{ matrix.scheme }}" -resultBundlePath ${{ matrix.scheme }} test -destination "platform=$platform,name=$device"
- name: Format
- name: Report
uses: kishikawakatsumi/xcresulttool@v1
with:
path: ${{ matrix.scheme }}.xcresult
Expand Down

0 comments on commit 0f7f388

Please sign in to comment.