From 53e7e4d560755213ef3994492bb4cc7c42a1cec1 Mon Sep 17 00:00:00 2001 From: Dan Federman Date: Mon, 5 Feb 2024 18:26:04 -0800 Subject: [PATCH] Use Codecov 4 (#56) --- .github/workflows/ci.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f43a82c9..f0a1ca49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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