Skip to content

Commit

Permalink
Try bash
Browse files Browse the repository at this point in the history
  • Loading branch information
levieggertcru committed Jun 20, 2024
1 parent 5550fdc commit 5673198
Showing 1 changed file with 13 additions and 29 deletions.
42 changes: 13 additions & 29 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,35 +35,19 @@ jobs:
run: |
xcrun llvm-cov export -format="lcov" .build/arm64-apple-macosx/debug/LocalizationServicesPackageTests.xctest/Contents/MacOS/LocalizationServicesPackageTests -instr-profile .build/arm64-apple-macosx/debug/codecov/default.profdata > info.lcov
- name: Upload Code Coverage Report to CodeCov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
files: info.lcov
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true

# - name: Run Tests and Upload Code Coverage
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# run: |
# swift build
# swift test --enable-code-coverage
# 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: Upload Code Coverage
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# run: |
# xcrun llvm-cov export -format="lcov" .build/debug/LocalizationServicesPackageTests.xctest/Contents/MacOS/LocalizationServicesPackageTests -instr-profile .build/debug/codecov/default.profdata > info.lcov
# bash <(curl https://codecov.io/bash) -t $CODECOV_TOKEN





env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
bash <(curl https://codecov.io/bash) -t $CODECOV_TOKEN
# - name: Upload Code Coverage Report to CodeCov
# uses: codecov/codecov-action@v4
# with:
# fail_ci_if_error: true
# files: info.lcov
# 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
Expand Down

0 comments on commit 5673198

Please sign in to comment.