cargo-nx icon indicating copy to clipboard operation
cargo-nx copied to clipboard

chore(ci): add github actions CI checks

Open LNSD opened this issue 1 month ago • 0 comments

This pull request introduces a new continuous integration (CI) workflow for Rust projects. The workflow is defined in the .github/workflows/ci.yml file and includes jobs for building, testing, and formatting the code.

Key changes include:

  • CI Workflow Setup:

    • Added a CI workflow triggered on pull requests and pushes to the main branch.
    • Configured environment variables for Rust, including CARGO_TERM_COLOR and RUST_BACKTRACE.
  • Build and Test Jobs:

    • Defined a test job that runs on ubuntu-latest, checks out the repository, sets up the Rust toolchain, caches build files, and runs build and test commands (cargo check, cargo clippy, cargo test).
    • Included steps for running unit tests and documentation tests.
  • Formatting Job:

    • Added a format job that also runs on ubuntu-latest, checks out the repository, sets up the Rust toolchain with rustfmt, and checks code formatting using cargo fmt.

LNSD avatar Jan 09 '25 22:01 LNSD