From c6226df34b446d97096a470f729deeb248d04265 Mon Sep 17 00:00:00 2001 From: Manuel Trezza <5673677+mtrezza@users.noreply.github.com> Date: Sat, 24 Aug 2024 03:20:25 +0200 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30ce6574e..d2a8dd4b8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,15 +85,14 @@ jobs: ~/Library/Developer/Xcode/DerivedData/Parse-*/Logs/Test ~/Library/Developer/Xcode/DerivedData/**/Logs/Build - name: Install test parsing dependencies + if: matrix.script == 'test:ios' # Workaround as codecov cannot parse xcresult files; # https://github.com/codecov/uploader/issues/1078 # https://github.com/codecov/codecov-action/issues/1367 run: | - if [ "${{ matrix.script }}" != "test:ios" ]; then - exit 0 - fi brew install a7ex/homebrew-formulae/xcresultparser - name: Convert Xcode test results for code coverage upload + if: matrix.script == 'test:ios' env: COVERAGE_PATH: build/${{ matrix.script }}-coverage.xml run: | @@ -104,6 +103,7 @@ jobs: xcresultparser --output-format cobertura \ "$TEST_RESULTS" >"$COVERAGE_PATH" - name: Upload code coverage + if: matrix.script == 'test:ios' uses: codecov/codecov-action@v4 with: # Set to `true` once codecov token bug is fixed; https://github.com/parse-community/parse-server/issues/9129