Skip to content

Commit

Permalink
Install specific version of dotnet-format from AzDO feed (#2747)
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwille authored Jul 15, 2022
1 parent f2ec937 commit f1a0894
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build-ilspy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:
steps:
- run: mkdir -p $env:StagingDirectory

- name: Force git to use crlf, otherwise dotnet-format --check fails
run: git config --global core.autocrlf true

- uses: actions/checkout@v3
with:
submodules: true
Expand All @@ -30,6 +29,9 @@ jobs:
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1

- name: Install dotnet-format
run: dotnet tool install -g dotnet-format --version "6.2.315104" --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json

- name: Get Version
id: version
shell: pwsh
Expand Down Expand Up @@ -64,7 +66,7 @@ jobs:
paths: "test-results/${{ matrix.configuration }}.xml"

- name: Format check
run: dotnet format whitespace --verify-no-changes --verbosity detailed ILSpy.sln
run: dotnet-format whitespace --verify-no-changes --verbosity detailed ILSpy.sln

- name: Verify package contents
if: matrix.configuration == 'debug'
Expand Down

0 comments on commit f1a0894

Please sign in to comment.