Skip to content

Commit

Permalink
build: use global dotnet-format on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ostridm committed Jun 13, 2024
1 parent f8bd92e commit f84d231
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ jobs:
run: dotnet build -c Release --no-restore --nologo /p:CopyLocalLockFileAssemblies=true

- name: dotnet format
if: runner.os != 'Windows'
run: dotnet format --no-restore

- name: dotnet format
if: runner.os == 'Windows'
run: dotnet-format --no-restore

- name: dotnet test
run: dotnet test -c Release --no-build --nologo
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/composite/net/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ runs:
with:
dotnet-version: 6.x.x

- name: Install dotnet-format
if: runner.os == 'Windows'
shell: cmd
run: dotnet tool install -g dotnet-format --version "6.*" --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json

- name: Dependency Caching
uses: actions/cache@v3
with:
Expand Down

0 comments on commit f84d231

Please sign in to comment.