diff --git a/.github/workflows/build+test+deploy.yml b/.github/workflows/build+test+deploy.yml index 10798ee27..677ccbce6 100644 --- a/.github/workflows/build+test+deploy.yml +++ b/.github/workflows/build+test+deploy.yml @@ -143,4 +143,37 @@ jobs: - name: Add .NET tools to PATH run: echo "$HOME/.dotnet/tools" >> $GITHUB_PATH - name: Lint FSharpLint.Console project (net8.0 only) - run: dotnet fsharplint lint ./src/FSharpLint.Console/FSharpLint.Console.fsproj --framework net8.0 \ No newline at end of file + run: dotnet fsharplint lint ./src/FSharpLint.Console/FSharpLint.Console.fsproj --framework net8.0 + + testReleaseBinariesWithDotNet10: + needs: deployReleaseBinaries + runs-on: ubuntu-latest + steps: + - run: dotnet --list-sdks + - uses: actions/checkout@v4 + - name: Download artifact + uses: actions/download-artifact@v4 + with: + name: binaries + path: ./artifacts + - name: Remove global.json to allow .NET 10 SDK + run: rm -f global.json + - name: Create local NuGet.config + run: | + cat > NuGet.config < + + + + + + + + + EOF + - name: Install FSharpLint from downloaded binaries + run: dotnet tool install --global dotnet-fsharplint --prerelease + - name: Add .NET tools to PATH + run: echo "$HOME/.dotnet/tools" >> $GITHUB_PATH + - name: Lint FSharpLint.Console project + run: dotnet fsharplint lint ./src/FSharpLint.Console/FSharpLint.Console.fsproj diff --git a/src/FSharpLint.Console/FSharpLint.Console.fsproj b/src/FSharpLint.Console/FSharpLint.Console.fsproj index a614e3105..03c445115 100644 --- a/src/FSharpLint.Console/FSharpLint.Console.fsproj +++ b/src/FSharpLint.Console/FSharpLint.Console.fsproj @@ -12,7 +12,7 @@ dotnet-fsharplint FSharpLint.Console true - Major + LatestMajor