reloaded-project/Test Rust Library and Upload Coverage
Runs tests for a Rust library using Tarpaulin and uploads the coverage to Codecov.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| rust-project-path | Directory containing Cargo.toml (crate root or workspace root) | no | . |
| rust-toolchain | Rust toolchain to use for building and testing (e.g., stable, nightly, 1.75.0, nightly-2024-02-08) | no | stable |
| target | The target platform for the Rust compiler | no | "" |
| install-rust-toolchain | Whether to install the specified Rust toolchain | no | true |
| setup-rust-cache | Whether to set up Rust caching | no | true |
| cache-workspace-crates | Whether rust-cache should cache workspace crates | no | true |
| cache-directories | Additional directories to cache, relative to rust-project-path unless absolute. The rustdoc directory is cached automatically. | no | "" |
| use-tarpaulin | Whether to use Tarpaulin for code coverage. If false, only runs tests. | no | true |
| use-binstall | Whether to use cargo-binstall for installing components like tarpaulin. If false, uses cargo install. | no | true |
| install-binstall | Whether to install cargo-binstall. If false, assumes it is already available in the environment. | no | true |
| upload-coverage | Whether to upload coverage to Codecov | no | true |
| codecov-token | Codecov token for uploading coverage | no | — |
| codecov-flags | Flags to pass to Codecov | no | unittests |
| codecov-name | Custom defined name for the upload | no | codecov-umbrella |
| features | Space-separated list of features to enable during testing | no | "" |
| no-default-features | Disable default features during testing | no | false |
| use-cross | Use cross-rs for testing. If false, use cargo. | no | false |
| additional-test-args | Additional arguments to pass to the cargo test command | no | "" |
| additional-tarpaulin-args | Additional arguments to pass to the cargo tarpaulin command | no | "" |
| pre-test-command | Bash command to run before executing tests | no | "" |
| packages | Multi-line list of package names to test (one per line). If empty, tests all packages in workspace (--all) | no | "" |
Outputs
no outputs