cargo-nx
cargo-nx copied to clipboard
chore(ci): add github actions CI checks
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
andRUST_BACKTRACE
.
- Added a CI workflow triggered on pull requests and pushes to the
-
Build and Test Jobs:
- Defined a
test
job that runs onubuntu-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.
- Defined a
-
Formatting Job:
- Added a
format
job that also runs onubuntu-latest
, checks out the repository, sets up the Rust toolchain withrustfmt
, and checks code formatting usingcargo fmt
.
- Added a