Skip to content

Modernize GitHub workflows and finish NuGet trusted publishing - #10

Merged
ardalis merged 1 commit into
mainfrom
workflows-main
Nov 25, 2026
Merged

ardalis merged 1 commit into
mainfrom
workflows-main

Conversation

@ardalis

@ardalis ardalis commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Closes #6.

This re-lands #7. That PR was merged into xunit-v3-main after #9 had already merged that branch into main, so its changes never reached main. This PR has the same six files as #7's final state and no other changes. See #7 for the full description.

Summary

  • publish.yml reuses ci.yml and pushes the package CI built. NuGet trusted publishing (OIDC) login and push run only for tag refs, and id-token: write is scoped to that job.
  • ci.yml:
    • broader path filters
    • contents: read and concurrency
    • locked-mode restore with caching
    • TRX and Cobertura artifacts using Microsoft.Testing.Platform flags
    • uploads the package artifact
    • callable through workflow_call
  • All actions pinned to commit SHAs; Dependabot for github-actions and nuget; NuGet lock files enabled

Manual steps (need a maintainer)

  • nuget.org → Trusted Publishing policy: owner NimblePros, repo SharedKernelSample, workflow publish.yml
  • Confirm NUGET_USER is the nuget.org username of the policy owner
  • After the first successful trusted publish, delete the NUGET_API_KEY secret and revoke the key

Test plan

  • Locked-mode restore, build and test (10/10) pass locally on top of main
  • actionlint passes
  • CI green (this PR changes .github/workflows/**, but main's current CI only runs for src/** changes, so I'll start CI manually)

🤖 Generated with Claude Code

Re-lands #7, which was merged into xunit-v3-main after that branch had
already been merged to main.

Closes #6

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ardalis
ardalis merged commit 42afa9b into main Nov 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Modernize GitHub workflows and finish move to NuGet trusted publishing

1 participant