Skip to content
Merged
Show file tree
Hide file tree
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
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,23 @@ jobs:
run: cargo build --verbose

# Step 5: Run unit tests
- name: Run tests
run: cargo test --verbose
# - name: Run tests
# run: cargo test --verbose
- name: Install llvm-tools and cargo-llvm-cov
run: |
rustup component add llvm-tools-preview
cargo install cargo-llvm-cov

- name: Run coverage
run: |
cargo llvm-cov --lcov --output-path lcov.info

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: lcov.info
flags: unittests
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}


18 changes: 16 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,22 @@ jobs:
run: cargo build --verbose

# Step 5: Run unit tests
- name: Run tests
run: cargo test --verbose
- name: Install llvm-tools and cargo-llvm-cov
run: |
rustup component add llvm-tools-preview
cargo install cargo-llvm-cov

- name: Run coverage
run: |
cargo llvm-cov --lcov --output-path lcov.info

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: lcov.info
flags: unittests
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

# Check that there are no SemVer violations before releasing.
# https://github.com/obi1kenobi/cargo-semver-checks
Expand Down
Loading