@@ -143,4 +143,37 @@ jobs:
143143 - name : Add .NET tools to PATH
144144 run : echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
145145 - name : Lint FSharpLint.Console project (net8.0 only)
146- run : dotnet fsharplint lint ./src/FSharpLint.Console/FSharpLint.Console.fsproj --framework net8.0
146+ run : dotnet fsharplint lint ./src/FSharpLint.Console/FSharpLint.Console.fsproj --framework net8.0
147+
148+ testReleaseBinariesWithDotNet10 :
149+ needs : deployReleaseBinaries
150+ runs-on : ubuntu-latest
151+ steps :
152+ - run : dotnet --list-sdks
153+ - uses : actions/checkout@v4
154+ - name : Download artifact
155+ uses : actions/download-artifact@v4
156+ with :
157+ name : binaries
158+ path : ./artifacts
159+ - name : Remove global.json to allow .NET 10 SDK
160+ run : rm -f global.json
161+ - name : Create local NuGet.config
162+ run : |
163+ cat > NuGet.config <<EOF
164+ <?xml version="1.0" encoding="utf-8"?>
165+ <configuration>
166+ <packageSources>
167+ <add key="local" value="./artifacts" />
168+ </packageSources>
169+ <disabledPackageSources>
170+ <add key="nuget.org" value="true" />
171+ </disabledPackageSources>
172+ </configuration>
173+ EOF
174+ - name : Install FSharpLint from downloaded binaries
175+ run : dotnet tool install --global dotnet-fsharplint --prerelease
176+ - name : Add .NET tools to PATH
177+ run : echo "$HOME/.dotnet/tools" >> $GITHUB_PATH
178+ - name : Lint FSharpLint.Console project
179+ run : dotnet fsharplint lint ./src/FSharpLint.Console/FSharpLint.Console.fsproj
0 commit comments