Repository navigation
ci: test on .NET 10 and .NET 11; publish to NuGet with trusted publishing - #1
Merged
Merged
Conversation
…hing The tests target net10.0 and net11.0, and a Build and Test workflow runs them on pull requests and on main. The expected generator output now uses ReplaceLineEndings(), so the test passes on a CRLF checkout instead of doubling the carriage return. The publish workflow is the trusted publishing setup the other package repos use: manual dispatch from main, the nuget environment, an OIDC login, and --skip-duplicate. The generator and annotations stay netstandard2.0 and keep their versions; nothing in the packages changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
net10.0;net11.0(previouslynet8.0). A new Build and Test workflow runs them on pull requests and onmain, with both SDKs installed.ReplaceLineEndings().Replace("\n", Environment.NewLine)turned the\r\nof a CRLF checkout into\r\r\n, so the test failed on Windows.publish.yml, the same trusted-publishing workflow as the other package repos: manual dispatch frommain, thenugetenvironment, a NuGet OIDC login, and--skip-duplicate.netstandard2.0and keep their versions (1.0.3.2 / 1.0.0). Nothing in the packages changes, so a publish now is a no-op until the next version bump.Before the first publish
modernuo/CodeGeneratedEvents, workflowpublish.yml, environmentnuget, owning bothModernUO.CodeGeneratedEvents.*packages.NUGET_USERorg secret is available to this repository.Testing
dotnet test -c Release: passes on net10.0 and net11.0.-p:GeneratePackageOnBuild=falsegives the same layout as the published 1.0.0 / 1.0.3.2 packages.