From 4bd51c1370230c852b326cafddf321025f5797e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enis=20Muli=C4=87?= Date: Fri, 3 Nov 2023 23:51:51 +0100 Subject: [PATCH] ci: add azure pipeline --- .azuredevops/pipelines/ci.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.azuredevops/pipelines/ci.yml b/.azuredevops/pipelines/ci.yml index 8b13789..4dd5bdf 100644 --- a/.azuredevops/pipelines/ci.yml +++ b/.azuredevops/pipelines/ci.yml @@ -1 +1,38 @@ +trigger: + batch: true + branches: + include: + - main +pool: + vmImage: ubuntu-latest + +steps: + - task: UseDotNet@2 + displayName: Install dotnet + inputs: + packageType: "sdk" + version: "7.0.x" + + - task: DotNetCoreCLI@2 + displayName: Lint + inputs: + command: "custom" + custom: "format" + arguments: "--verify-no-changes --verbosity diagnostic" + + - task: DotNetCoreCLI@2 + displayName: Build + inputs: + command: "build" + arguments: "--configuration Release" + + - task: DotNetCoreCLI@2 + displayName: Test + inputs: + command: "test" + arguments: > + tests/Application.UnitTests + --no-restore + --verbosity normal + --logger trx