Add check for version compatibility by building a small sample. #1026
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@fabricereix @lepapareil
This PR add a new check in the CI.
We build a small sample that can be build with the last released hurl crate. In the CI, we check that this sample can be build using the SNAPSHOT version of hurl crates, without any changes. If this check is not passing, it means that we have broken the API compatibility and must increment hurl crate's major version.
The sample uses most of hurl crate's public structures to detect API changes.
If we detect a major version change in the snapshot version, we bypass this check.
For instance, following #1030 and the additions of two new options, we have to increment major version. We'll use some code pattern soon to allow new options creations without breaking major compatibility.
(see #972)