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

check mode #63

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

check mode #63

wants to merge 6 commits into from

Conversation

mmhat
Copy link
Contributor

@mmhat mmhat commented Jan 6, 2025

This PR adds a check command to the get-tested executable:
For instance, get-tested check package.cabal 9.12.1 9.10.1 will check if the tested-with stanza in the package.cabal file contains both GHC ==9.12.1 and GHC ==9.10.1.
To make the work with multiple package (e.g. in mono-repos) easier we provide an --from option:
get-tested check --from library.cabal executable.cabal will check if all compilers listed in the tested-with stanza of the executable.package appear in the one of the library.cabal. The intended use case is a CI pipeline, where the test matrix is generated from the compilers of the library.cabal, and we want to check that the executable.cabal package living in the same repository does not "lie" about the versions it was actually tested with.

Fixes #49

@mmhat mmhat marked this pull request as ready for review January 6, 2025 18:11
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.

Add a check mode
1 participant