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 automatic PR checks #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danielparks
Copy link
Contributor

This adds automatic checks for each PR:

  • cargo clippy
  • cargo fmt (checks that cargo fmt is a no-op)
  • cargo msrv (verifies that minimum supported Rust version is what is set as rust-version in Cargo.toml)
  • cargo test

This also sets GitHub’s dependabot to check for updates to the GitHub actions used monthly.

Currently, the crate works on any version of Rust from 1.56 on up. This sets rust-version in Cargo.toml so that any change to the minimum supported Rust version (MSRV) will be noticed.

Finally, this removes the rust-toolchain file and adds it to .gitignore. This allows the crate to be developed on any version of Rust ≥1.56.

Fixes: #17 — Set up continious integration


This is close to what I use in my crates1, so it was easy to adapt. If you don’t like it at all, it’s no problem to just discard. (Or modify, of course.)

Footnotes

  1. I also use cargo-deny to check dependencies for security vulnerabilities and license problems, but given that the only dependency is libc that seems a little silly. Still, I could add it without any real effort.

This adds automatic checks for each PR:

  * `cargo clippy`
  * `cargo fmt` (checks that `cargo fmt` is a no-op)
  * [`cargo msrv`] (verifies that minimum supported Rust version is what
    is set as `rust-version` in Cargo.toml)
  * `cargo test`

This also sets GitHub’s dependabot to check for updates to the GitHub
actions used monthly.

Currently, the crate works on any version of Rust from 1.56 on up. This
sets `rust-version` in Cargo.toml so that any change to the minimum
supported Rust version (MSRV) will be noticed.

Finally, this removes the rust-toolchain file and adds it to .gitignore.
This allows the crate to be developed on any version of Rust ≥1.56.

Fixes: cloudhead#17 — Set up continious integration

[`cargo msrv`]: https://github.com/foresterre/cargo-msrv
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.

Set up continious integration
1 participant