Repository navigation
Validate packages in parallel - #4223
Conversation
Invoke `meziantou.validate-nuget-package` once for all packages, rather than once per package.
RaphaelFakhri
left a comment
There was a problem hiding this comment.
The new single call drops --excluded-rules IconMustBeSet, and the packages don't set an icon (<PackageIcon></PackageIcon> in Directory.Build.props), so this step now fails for every package.
To check, I packed Swashbuckle.AspNetCore.Annotations from master (819734d) with -p:ContinuousIntegrationBuild=true and ran the tool version pinned in .config/dotnet-tools.json (2.0.16):
| Command | Exit code | Errors |
|---|---|---|
meziantou.validate-nuget-package <pkg> --excluded-rules IconMustBeSet |
0 | none |
meziantou.validate-nuget-package <pkg> (this PR) |
1 | ErrorCode 32: The package does not have an icon |
Suggested change:
meziantou.validate-nuget-package @($packages) --github-token ${env:GH_TOKEN} --excluded-rules IconMustBeSet
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4223 +/- ##
=======================================
Coverage 91.77% 91.77%
=======================================
Files 108 108
Lines 4063 4063
Branches 909 909
=======================================
Hits 3729 3729
Misses 189 189
Partials 145 145
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Restore `IconMustBeSet` suppression now parallel validation tested.
Invoke
meziantou.validate-nuget-packageonce for all packages, rather than once per package.