Skip to content

Commit

Permalink
revert to codecov 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrezza committed Aug 23, 2024
1 parent f60d72e commit ce619f4
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,29 +84,14 @@ jobs:
path: |
~/Library/Developer/Xcode/DerivedData/Parse-*/Logs/Test
~/Library/Developer/Xcode/DerivedData/**/Logs/Build
- name: Install test parsing dependencies
# Workaround as codecov cannot parse xcresult files;
# https://github.com/codecov/uploader/issues/1078
# https://github.com/codecov/codecov-action/issues/1367
run: |
brew install a7ex/homebrew-formulae/xcresultparser
- name: Parse Xcode test results for code coverage
env:
COVERAGE_PATH: build/${{ matrix.script }}-coverage.xml
run: |
echo COVERAGE_PATH=${COVERAGE_PATH} >> $GITHUB_ENV
echo "TEST_RESULTS: $TEST_RESULTS"
echo "COVERAGE_PATH: $COVERAGE_PATH"
set -o pipefail && \
xcresultparser --output-format cobertura \
"$TEST_RESULTS" >"$COVERAGE_PATH"
- name: Upload code coverage
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v3
with:
# Set to `true` once codecov token bug is fixed; https://github.com/parse-community/parse-server/issues/9129
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
file: ${{ env.COVERAGE_PATH }}
xcode: true
xcode_archive_path: ${{ env.TEST_RESULTS }}
docs:
runs-on: macos-13
timeout-minutes: 15
Expand Down

0 comments on commit ce619f4

Please sign in to comment.