generated from Kentico/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Switch the CI to GitHub Actions #2
Labels
Comments
Findings: Migration AppVeyor -> GitHub Actions (Win->Linux)
Custom actions
Symbols
Collecting coverage
<PackageReference Include="coverlet.collector" Version="3.0.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.msbuild" Version="3.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference> Protecting secrets when building forks
|
articles to be published at https://dev.to/petrsvihlik |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Motivation
Acceptance Criteria
Artifacts are collected for every buildCan be, it's easy but not necessary. We'll collect artifacts only for Releases.Optionally
Define environments and require approval to proceed with deployment (when the build and tests pass ok)Gated builds work well.Directory.Build.props
with-p:NuspecProperties="Version=${{ steps.get_version.outputs.version-without-v }}
dotnet build -p:Version=1.2.3
anddotnet pack -p:PackageVersion=1.2.3
does the trickTry reporting withoutdoesn't work/p:CoverletOutputFormat=opencover
Deploy pre-releases to a different feed/unlisted? (eg. based on the event type prereleased)There is no switch in the NuGet CLI to publish a package as unlisted right now. It'd be an option to publish the package to MyGet for instance. Not going to explore this any further ATM.Create a reusable composite actionImpossible due to Next Steps for Fully Functioning Composite Actions actions/runner#646 (there is a workaround though)Proposed solution
Versioning
Examples from AppVeyor:
<Project><PropertyGroup><Version>$($ENV:APPVEYOR_BUILD_VERSION)</Version></PropertyGroup></Project>" | out-file "Directory.build.props
(before build)And:
Coverage
Remaining repos
kontent-sample-app-net (special: packing x86+x64 website for further internal CI steps)kontent-generators-net (special: packing standalone apps for multiple platforms)Outstanding tasks
warning NU5048: The 'PackageIconUrl'/'iconUrl' element is deprecated. Consider using the 'PackageIcon'/'icon' element instead. Learn more at https://aka.ms/deprecateIconUrl
The text was updated successfully, but these errors were encountered: