From 95d1332f56dde51ced8f01c20a8898ac68ec2057 Mon Sep 17 00:00:00 2001 From: jisaa1 <147190601+jisaa1@users.noreply.github.com> Date: Thu, 26 Oct 2023 09:10:16 +0100 Subject: [PATCH 1/3] Set up CI with Azure Pipelines1 [skip ci] --- azure-pipelines.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000000..10bb8b96d3 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,17 @@ +# ASP.NET Core +# Build and test ASP.NET Core projects targeting .NET Core. +# Add steps that run tests, create a NuGet package, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core + +trigger: +- master + +pool: + vmImage: ubuntu-latest + +variables: + buildConfiguration: 'Release' + +steps: +- script: dotnet build --configuration $(buildConfiguration) + displayName: 'dotnet build $(buildConfiguration)' From daabf01f2482e6537f785a00513f6da79c8757cf Mon Sep 17 00:00:00 2001 From: jisaa1 <147190601+jisaa1@users.noreply.github.com> Date: Thu, 26 Oct 2023 10:00:26 +0100 Subject: [PATCH 2/3] Update README.md updated READ me --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index dff610f8ce..1f436695eb 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ For information on how to set up a pipeline for this repository, see [Create your first pipeline](https://docs.microsoft.com/azure/devops/pipelines/get-started-yaml?view=azure-devops). For more information on building .NET Core applications, see [.NET Core](https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core?view=azure-devops). +Thank you sharing this sample file, now I can build my pipelines. + # Contributing From 146be68727ff50a94d2556e839ff474f20dae1c8 Mon Sep 17 00:00:00 2001 From: jisaa1 <147190601+jisaa1@users.noreply.github.com> Date: Thu, 9 Nov 2023 15:55:29 +0000 Subject: [PATCH 3/3] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 10bb8b96d3..e373f45a29 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -15,3 +15,14 @@ variables: steps: - script: dotnet build --configuration $(buildConfiguration) displayName: 'dotnet build $(buildConfiguration)' +- task: VSTest@2 + displayName: 'Run tests' + inputs: + platform: '$(buildPlatform)' + configuration: '$(buildConfiguration)' + +- task: PublishTestResults@2 + displayName: 'Publish test results' + inputs: + testResultsFormat: 'JUnit' + testResultsFiles: '**/TEST-*.xml'