diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a2cab09..056f475 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,11 +59,14 @@ jobs: run: cargo install cargo-tarpaulin - name: Generate coverage - run: cargo tarpaulin --lib --out xml --skip-clean -- --skip integration - - - name: Upload to Codecov - if: github.event_name != 'pull_request' - uses: codecov/codecov-action@v6 + run: > + cargo tarpaulin --lib --test client_tests + --out lcov --skip-clean + --exclude-files 'examples/*' + --exclude-files 'tests/*' + + - name: Upload to Coveralls + uses: coverallsapp/github-action@v2 with: - files: cobertura.xml - fail_ci_if_error: false + file: lcov.info + fail-on-error: true diff --git a/.gitignore b/.gitignore index ba1e343..adf4515 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,6 @@ Cargo.lock *.swp *.swo *~ +cobertura.xml +lcov.info +tarpaulin-report.* diff --git a/README.md b/README.md index 9f2472b..ac120de 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![CI](https://github.com/MinaProtocol/mina-sdk-rust/actions/workflows/ci.yml/badge.svg)](https://github.com/MinaProtocol/mina-sdk-rust/actions/workflows/ci.yml) [![Integration Tests](https://github.com/MinaProtocol/mina-sdk-rust/actions/workflows/integration.yml/badge.svg)](https://github.com/MinaProtocol/mina-sdk-rust/actions/workflows/integration.yml) +[![Coverage](https://coveralls.io/repos/github/MinaProtocol/mina-sdk-rust/badge.svg?branch=master)](https://coveralls.io/github/MinaProtocol/mina-sdk-rust?branch=master) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE) Rust SDK for interacting with [Mina Protocol](https://minaprotocol.com) nodes via GraphQL.