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 CI check for all individual crates #1017

Merged
merged 6 commits into from
Mar 13, 2023
Merged

Add CI check for all individual crates #1017

merged 6 commits into from
Mar 13, 2023

Conversation

ascjones
Copy link
Collaborator

@ascjones ascjones commented Mar 13, 2023

Currently the CI only runs workspace level build and test commands. However it is possible that these will succeed but when building an individual crate it will fail. e.g the CI for #1010 succeeded, but when it came to releasing it, it didn't work because of missing features.

My guess is that there is another crate which depends on primitive-types at the workspace level, which pulls in the required features via feature unification.

This PR iterates over the crates in the crates dir and runs check on each one. When performing a release on an individual crate, cargo publish will run cargo check before publishing, so we want to catch any errors which would arise there in the CI.

@ascjones ascjones marked this pull request as ready for review March 13, 2023 11:42
@ascjones ascjones requested review from a team, cmichi, HCastano and SkymanOne as code owners March 13, 2023 11:42
Copy link
Contributor

@SkymanOne SkymanOne left a comment

Choose a reason for hiding this comment

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

Thanks!

@ascjones ascjones merged commit beb6e66 into master Mar 13, 2023
@ascjones ascjones deleted the aj/ci-check branch March 13, 2023 12:21
- name: Checkout
uses: actions/checkout@v3

- name: Check each crate
Copy link
Contributor

Choose a reason for hiding this comment

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

@ascjones do you mind making a small follow-up explaining why we need this check?

For someone just reading the CI file they wouldn't have enough context to know why we manually check all crates

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

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