Skip to content

Commit

Permalink
👷 Fix codecov upload conditions in CI (#395)
Browse files Browse the repository at this point in the history
* 💚 Fix codecov upload conditions in CI

* debug: trigger workflow

* Revert "debug: trigger workflow"

This reverts commit 7c90fbd.
  • Loading branch information
aaronleopold authored Aug 14, 2024
1 parent 6161b49 commit 4b4dcb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ jobs:
# TODO: move coverage to a separate job instead of conditionally running it
# on the ubuntu-22.04 runner as a workaround for only running it once
- name: Install cargo-llvm-cov
if: runner.os == 'ubuntu-22.04'
if: matrix.os == 'ubuntu-22.04'
run: cargo install cargo-llvm-cov

- name: Generate code coverage data
if: runner.os == 'ubuntu-22.04'
if: matrix.os == 'ubuntu-22.04'
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info

- name: Upload coverage to Codecov
if: runner.os == 'ubuntu-22.04'
if: matrix.os == 'ubuntu-22.04'
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit 4b4dcb1

Please sign in to comment.