-
Notifications
You must be signed in to change notification settings - Fork 4
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 version check to reported output #164
Conversation
required PackageApiDiffResult diffResult, | ||
required PackageApi oldPackageApi, | ||
required PackageApi newPackageApi, | ||
required bool ignorePrerelease, | ||
required VersionCheckMode versionCheckMode, | ||
}) { | ||
stdout.writeln(''); | ||
stdout.writeln('Checking Package version'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know what you want to still stdout
here.
oldVersion: oldVersion, | ||
newVersion: newVersion, | ||
neededVersion: null, | ||
explanation: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy to change the explanations to anything you like better.
@@ -40,126 +40,126 @@ void main() { | |||
|
|||
group('Version Check', () { | |||
test('is fine with breaking change and major version change', () { | |||
bool versionChangeCheckResult = VersionCheck.versionChangeMatchesChanges( | |||
final versionChangeCheckResult = VersionCheck.check( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests could be more fine-grained now probably, also checking for expected version etc.
Thanks for your changes @mosuem ! |
adds empty VersionCheckResult to console_diff_reporter_test
I allowed myself to adapt your PR a bit π |
Thanks a lot! I was OOO :) |
Description
For our health.yaml workflow, it would be ideal if the version checking would also be part of the JSON report.
Type of Change