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 cargo check+test for minimal-versions in CI #44

Merged
merged 29 commits into from
Jan 10, 2024

Conversation

DRiKE
Copy link
Collaborator

@DRiKE DRiKE commented Jan 9, 2024

This PR adds a CI job testing whether the minimal versions as specified in Cargo.toml actually compile and pass the unit tests.

- if: matrix.rust == 'nightly'
run: |
cargo +nightly update -Z minimal-versions
cargo check --all-features --verbose --all-targets
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that this is basically just a Will It Compile test, I suppose adding the --tests (and possibly --examples) options to this cargo check and dropping the cargo test below will be sufficient and save some cycles.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The separate check is indeed not super useful, though separate build and test is convenient to quickly spot where things go wrong. (Note that this was inspired by the ci.yml in the domain crate, so we might want to have a look at that one as well).
On saving cycles, it might actually make more sense to get rid of the beta/nightly runs.

@DRiKE DRiKE mentioned this pull request Jan 10, 2024
@DRiKE DRiKE merged commit 3bb04cd into main Jan 10, 2024
18 checks passed
@DRiKE DRiKE deleted the minimal-version-test-in-ci branch January 10, 2024 13:35
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.

3 participants