Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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