Skip to content

Commit

Permalink
Allow roll-forward for dotnet-validate
Browse files Browse the repository at this point in the history
Fix package validation by allowing `dotnet-validate` to roll-forward to a newer .NET runtime than .NET 6.
  • Loading branch information
martincostello committed Dec 18, 2024
1 parent 6587b47 commit e9553cf
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,10 @@ jobs:
with:
dotnet-version: ${{ needs.build.outputs.dotnet-sdk-version }}

- name: Setup .NET 6 SDK
uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 # v4.1.0
with:
dotnet-version: '6.0.x'

- name: Validate NuGet packages
shell: pwsh
run: |
dotnet tool install --global dotnet-validate --version 0.0.1-preview.304
dotnet tool install --global dotnet-validate --version 0.0.1-preview.304 --allow-roll-forward
$packages = Get-ChildItem -Filter "*.nupkg" | ForEach-Object { $_.FullName }
$invalidPackages = 0
foreach ($package in $packages) {
Expand Down

0 comments on commit e9553cf

Please sign in to comment.