diff --git a/.github/workflows/dotnet.yaml b/.github/workflows/dotnet.yaml index c94efb4..30adb00 100644 --- a/.github/workflows/dotnet.yaml +++ b/.github/workflows/dotnet.yaml @@ -242,11 +242,16 @@ jobs: - name: Identify .NET id: identify-dotnet run: nix develop --command bash -c 'echo dotnet=$(which dotnet) >> $GITHUB_OUTPUT' + - name: Obtain NuGet key + uses: NuGet/login@c4e75239670fdbea167b518c23523c3eaba3692d + id: login + with: + user: ${{ secrets.NUGET_USER }} - name: Publish NuGet package uses: G-Research/common-actions/publish-nuget@2b7dc49cb14f3344fbe6019c14a31165e258c059 with: package-name: WoofWare.PrattParser - nuget-key: ${{ secrets.NUGET_API_KEY }} + nuget-key: ${{ steps.login.outputs.NUGET_API_KEY }} nupkg-dir: packed/ dotnet: ${{ steps.identify-dotnet.outputs.dotnet }} diff --git a/PrattParser.Test/TestSurface.fs b/PrattParser.Test/TestSurface.fs index a325521..2a5affc 100644 --- a/PrattParser.Test/TestSurface.fs +++ b/PrattParser.Test/TestSurface.fs @@ -12,7 +12,6 @@ module TestSurface = let ``Ensure API surface has not been modified`` () = ApiSurface.assertIdentical assembly [] - [] // https://github.com/nunit/nunit3-vs-adapter/issues/876 let CheckVersionAgainstRemote () = MonotonicVersion.validate assembly "WoofWare.PrattParser" diff --git a/PrattParser/PrattParser.fsproj b/PrattParser/PrattParser.fsproj index e74f2c2..aafb86d 100644 --- a/PrattParser/PrattParser.fsproj +++ b/PrattParser/PrattParser.fsproj @@ -4,7 +4,7 @@ netstandard2.0 true true - Patrick Stevens + PatrickStevens Copyright (c) Patrick Stevens 2024 For the easy construction of Pratt parsers. git diff --git a/flake.nix b/flake.nix index 9dc1ed4..3f6504a 100644 --- a/flake.nix +++ b/flake.nix @@ -53,6 +53,7 @@ src = ./.; projectFile = "./PrattParser/PrattParser.fsproj"; testProjectFile = "./PrattParser.Test/PrattParser.Test.fsproj"; + disabledTests = ["WoofWare.PrattParser.Test.TestSurface.CheckVersionAgainstRemote"]; nugetDeps = ./nix/deps.json; # `nix build .#default.fetch-deps && ./result nix/deps.json` doCheck = true; };