Skip to content

Commit 030e924

Browse files
committed
GitHubCI: add regression test for #687
Added a job that tests built binaries with .NET 10 SDK installed, like it is already done for .NET 8, which demonstrates the issue raised in #687.
1 parent 508e87b commit 030e924

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

.github/workflows/build+test+deploy.yml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)