Skip to content

Commit

Permalink
Use Codecov 4 (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfed authored Feb 6, 2024
1 parent c5ef608 commit 53e7e4d
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ jobs:
run: ./Scripts/prepare-coverage-reports.sh
- name: Upload Coverage Reports
if: success()
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
verbose: true
os: macos
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

linux:
name: Build and Test on Linux
Expand All @@ -75,12 +81,24 @@ jobs:
uses: actions/checkout@v4
- name: Build and Test Framework
run: swift test -c release --enable-code-coverage -Xswiftc -enable-testing
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Setup repo root for Codecov
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" # See https://github.com/codecov/feedback/issues/263
- name: Prepare Coverage Reports
run: |
llvm-cov export -format="lcov" .build/x86_64-unknown-linux-gnu/release/SafeDIPackageTests.xctest -instr-profile .build/x86_64-unknown-linux-gnu/release/codecov/default.profdata > coverage.lcov
- name: Upload Coverage Reports
if: success()
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
verbose: true
os: linux
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

readme-validation:
name: Check Markdown links
Expand Down

0 comments on commit 53e7e4d

Please sign in to comment.