Skip to content

Commit

Permalink
CI: add code coverage information of the Rust code
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Jun 30, 2023
1 parent 0fde6ba commit 77cbf67
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,23 @@ jobs:
- name: Install Rust toolchains
run: rustup toolchain install stable

- name: Install Tarpaulin (for code coverage)
run: cargo install cargo-tarpaulin

- name: Run the tests
run: cargo test --verbose
run: cargo tarpaulin --out lcov --output-dir coverage

- name: Lint formatting
run: cargo fmt --all -- --check

- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v1
with:
base-path: ./rust
path-to-lcov: ./rust/coverage/lcov.info
flag-name: rust-backend
parallel: true

integration-tests:
timeout-minutes: 60
runs-on: ubuntu-latest
Expand Down

0 comments on commit 77cbf67

Please sign in to comment.