|
36 | 36 | - name: Run FSharpLint on itself |
37 | 37 | run: make selfcheck |
38 | 38 |
|
| 39 | + testToolInvocation: |
| 40 | + needs: buildAndTest |
| 41 | + runs-on: ubuntu-latest |
| 42 | + |
| 43 | + steps: |
| 44 | + - uses: actions/checkout@v4 |
| 45 | + - name: Setup .NET |
| 46 | + uses: actions/setup-dotnet@v4 |
| 47 | + with: |
| 48 | + global-json-file: global.json |
| 49 | + - name: Setup .NET 10 |
| 50 | + uses: actions/setup-dotnet@v4 |
| 51 | + with: |
| 52 | + dotnet-version: '10.0.x' |
| 53 | + - name: Restore tools |
| 54 | + run: dotnet tool restore |
| 55 | + - name: Build and pack |
| 56 | + run: dotnet fsi build.fsx -t Pack |
| 57 | + - name: Remove global.json to allow using .NET 10 SDK (for dnx) |
| 58 | + run: rm --force global.json |
| 59 | + - name: Run fsharplint as tool using dnx |
| 60 | + run: dnx fsharplint lint ./src/FSharpLint.Console/FSharpLint.Console.fsproj --source ./out/ --prerelease --yes --interactive false |
39 | 61 |
|
40 | 62 | packReleaseBinaries: |
41 | 63 | needs: buildAndTest |
@@ -161,11 +183,11 @@ jobs: |
161 | 183 | </configuration> |
162 | 184 | EOF |
163 | 185 | - name: Install FSharpLint from downloaded binaries |
164 | | - run: dotnet tool install --global dotnet-fsharplint --prerelease --framework net8.0 |
| 186 | + run: dotnet tool install --global fsharplint --prerelease --framework net8.0 |
165 | 187 | - name: Add .NET tools to PATH |
166 | 188 | run: echo "$HOME/.dotnet/tools" >> $GITHUB_PATH |
167 | 189 | - name: Lint FSharpLint.Console project (net8.0 only) |
168 | | - run: dotnet fsharplint lint ./src/FSharpLint.Console/FSharpLint.Console.fsproj --framework net8.0 |
| 190 | + run: fsharplint lint ./src/FSharpLint.Console/FSharpLint.Console.fsproj --framework net8.0 |
169 | 191 |
|
170 | 192 | testReleaseBinariesWithDotNet10: |
171 | 193 | needs: packReleaseBinaries |
@@ -195,8 +217,8 @@ jobs: |
195 | 217 | </configuration> |
196 | 218 | EOF |
197 | 219 | - name: Install FSharpLint from downloaded binaries |
198 | | - run: dotnet tool install --global dotnet-fsharplint --prerelease |
| 220 | + run: dotnet tool install --global fsharplint --prerelease |
199 | 221 | - name: Add .NET tools to PATH |
200 | 222 | run: echo "$HOME/.dotnet/tools" >> $GITHUB_PATH |
201 | 223 | - name: Lint FSharpLint.Console project |
202 | | - run: dotnet fsharplint lint ./src/FSharpLint.Console/FSharpLint.Console.fsproj |
| 224 | + run: fsharplint lint ./src/FSharpLint.Console/FSharpLint.Console.fsproj |
0 commit comments