Skip to content

Commit 63419cd

Browse files
committed
GithubCI: test running fsharplint with dnx
From locally built package.
1 parent 4356300 commit 63419cd

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

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

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,28 @@ jobs:
4242
- name: Run FSharpLint on itself
4343
run: make selfcheck
4444

45+
testToolInvocation:
46+
needs: buildAndTest
47+
runs-on: ubuntu-latest
48+
49+
steps:
50+
- uses: actions/checkout@v4
51+
- name: Setup .NET
52+
uses: actions/setup-dotnet@v4
53+
with:
54+
global-json-file: global.json
55+
- name: Setup .NET 10
56+
uses: actions/setup-dotnet@v4
57+
with:
58+
dotnet-version: '10.0.x'
59+
- name: Restore tools
60+
run: dotnet tool restore
61+
- name: Build and pack
62+
run: dotnet fsi build.fsx -t Pack
63+
- name: Remove global.json to allow using .NET 10 SDK (for dnx)
64+
run: rm --force global.json
65+
- name: Run fsharplint as tool using dnx
66+
run: dnx fsharplint lint ./src/FSharpLint.Console/FSharpLint.Console.fsproj --source ./out/ --prerelease --yes --interactive false
4567

4668
deployReleaseBinaries:
4769
needs: buildAndTest

0 commit comments

Comments
 (0)