Add in formatting pre-check. (#431)
This commit is contained in:
6
.github/workflows/dotnet.yaml
vendored
6
.github/workflows/dotnet.yaml
vendored
@@ -34,6 +34,12 @@ jobs:
|
||||
if: matrix.os != 'windows-latest'
|
||||
run: |
|
||||
rsync --archive --ignore-existing ${DOTNET_ROOT/3.1.201/2.1.805}/ ${DOTNET_ROOT/3.1.201/2.1.202}/ $DOTNET_ROOT
|
||||
- name: Setup Format
|
||||
run: dotnet tool install -g dotnet-format
|
||||
- name: Check Format
|
||||
# don't check formatting on Windows b/c of CRLF issues.
|
||||
if: matrix.os != 'windows-latest'
|
||||
run: dotnet format --check --dry-run --exclude ./src/KubernetesClient/generated/
|
||||
- name: Build
|
||||
run: dotnet build --configuration Release
|
||||
- name: Test
|
||||
|
||||
Reference in New Issue
Block a user