From 0f7f388a076ee673466d4f21304db677500acb76 Mon Sep 17 00:00:00 2001 From: "novr (Nobuhisa Komiya)" Date: Tue, 16 Jul 2024 11:16:48 +0900 Subject: [PATCH] [skip ci] wip --- .github/workflows/test.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1566717..90b38b1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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' }} @@ -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