Skip to content

Commit

Permalink
Try bash to upload code cov as lcov format
Browse files Browse the repository at this point in the history
  • Loading branch information
levieggertcru committed Jun 20, 2024
1 parent e703926 commit ec01a52
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,28 @@ jobs:
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.4.0'
- name: Run Tests
- name: Run Tests and Upload Code Coverage
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
swift test --enable-code-coverage
- name: Upload Xcode Code Coverage Report to CodeCov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
files: /Users/runner/work/localization-services-ios/localization-services-ios/.build/arm64-apple-macosx/debug/codecov/LocalizationServices.json
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
llvm-cov export -format="lcov" .build/debug/LocalizationServicesPackageTests.xctest -instr-profile .build/debug/codecov/default.profdata > info.lcov
bash <(curl https://codecov.io/bash) -t $CODECOV_TOKEN
# - name: Run Tests
# run: |
# swift test --enable-code-coverage
# - name: Upload Xcode Code Coverage Report to CodeCov
# uses: codecov/codecov-action@v4
# with:
# fail_ci_if_error: true
# files: /Users/runner/work/localization-services-ios/localization-services-ios/.build/arm64-apple-macosx/debug/codecov/LocalizationServices.json
# token: ${{ secrets.CODECOV_TOKEN }}
# verbose: true




# swift build
# swift test --enable-code-coverage
# llvm-cov export -format="lcov" .build/debug/SwiftLoggerPackageTests.xctest -instr-profile .build/debug/codecov/default.profdata > info.lcov
# bash <(curl https://codecov.io/bash)

0 comments on commit ec01a52

Please sign in to comment.