Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add testing jobs for rust #50

Merged
merged 8 commits into from
Dec 6, 2024
Merged

Add testing jobs for rust #50

merged 8 commits into from
Dec 6, 2024

Conversation

ThomasTNO
Copy link
Contributor

@ThomasTNO ThomasTNO commented Dec 5, 2024

Key Features of This Workflow:

  1. Workspace Support:

    • The --workspace flag ensures that commands like cargo build, cargo test, and cargo tarpaulin operate on all crates in the Rust workspace.
  2. Matrix Builds:

    • Tests are executed on both stable and nightly versions of Rust to ensure compatibility.
  3. Code Coverage Without External Services:

    • The workflow uses cargo-tarpaulin to generate a local HTML coverage report stored as an artifact (./coverage-report/).
    • You can download this artifact from GitHub Actions after the workflow completes.
  4. Linting and Formatting:

    • Ensures code quality by running cargo fmt and cargo clippy.
  5. Caching:

    • Speeds up builds by caching dependencies (~/.cargo/registry, ~/.cargo/git) and build artifacts (target).
  6. Artifacts:

    • The generated HTML coverage report is uploaded as an artifact so it can be reviewed or downloaded directly from GitHub Actions.

Copy link

github-actions bot commented Dec 5, 2024

Sigrid maintainability feedback

⏸️️ Your rating did not change and is still below your objective of 4.0 stars

Show details

Sigrid compared your code against the baseline of 2024-11-28.

👍 What went well?

You fixed or improved 0 refactoring candidates.

👎 What could be better?

You did not introduce any technical debt during your changes, great job!

📚 Remaining technical debt

27 refactoring candidates didn't get better or worse, but are still present in the code you touched.

View this system in Sigrid** to explore your technical debt

⭐️ Sigrid ratings

System property System on 2024-11-28 Before changes New/changed code
Volume 5.4 N/A N/A
Duplication 4.0 4.7 4.7
Unit Size 2.1 1.6 1.4
Unit Complexity 2.9 2.3 2.3
Unit Interfacing 2.0 1.4 1.3
Module Coupling 3.3 5.5 5.5
Component Independence 5.4 N/A N/A
Component Entanglement N/A N/A N/A
Maintainability 3.6 3.3 3.3

Did you find this feedback helpful?

We would like to know your thoughts to make Sigrid better.
Your username will remain confidential throughout the process.


View this system in Sigrid

@ThomasTNO
Copy link
Contributor Author

@grebnetiew, I added some common Rust jobs including building, linters and unit testing (+coverage report artifact)

@ThomasTNO ThomasTNO merged commit 38c3062 into main Dec 6, 2024
10 checks passed
@ThomasTNO ThomasTNO deleted the extend_ci branch December 6, 2024 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant