Skip to content

Commit

Permalink
Moved setup-dotnet to after linting step
Browse files Browse the repository at this point in the history
dotnet-format started failing after bumping setup-dotnet to v3
it looks like the cause of the failure is:
dotnet/format#1560
this was probably succeeding previously because it was using the version
preinstalled on the runner until the breaking change introduced with
[email protected] which caused the preinstalled version to be
overwritten:
https://github.com/actions/setup-dotnet/releases/tag/v3.0.0
  • Loading branch information
NickGraham101 committed Dec 29, 2022
1 parent 534fde0 commit a4e77e6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,18 @@ jobs:
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'

- name: Lint
run: |
#https://github.com/dotnet/format/issues/1433
dotnet tool install -g dotnet-format --version "6.*" --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json
#run setup-dotnet after this step due to https://github.com/dotnet/format/issues/1560
dotnet-format --verify-no-changes
working-directory: DqtApi

- uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'

- name: Build
run: dotnet build --configuration Release
working-directory: DqtApi
Expand Down

0 comments on commit a4e77e6

Please sign in to comment.