diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 0345b29b99..ee8a30c275 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,6 +33,15 @@ stages: steps: - template: build/stages/test.yml +- stage: Format + dependsOn: [] + jobs: + - job: Format + pool: + vmImage: 'ubuntu-latest' + steps: + - template: build/stages/format.yml + - stage: Artifact_Test displayName: 'Artifacts test' dependsOn: diff --git a/build/stages/format.yml b/build/stages/format.yml new file mode 100644 index 0000000000..051e5c8d07 --- /dev/null +++ b/build/stages/format.yml @@ -0,0 +1,10 @@ +steps: +- task: UseDotNet@2 + displayName: 'Use .NET Core sdk 2.1' + inputs: + packageType: sdk + version: 2.1.803 +- script: dotnet tool install -g dotnet-format + displayName: Install DotNet Format +- script: dotnet format --folder ./ --dry-run --check + displayName: Run DotNet Format