From 83ceaca140c558a117352da6660727f07c3e1490 Mon Sep 17 00:00:00 2001 From: Bogdan Gavril Date: Thu, 9 May 2024 16:16:51 +0100 Subject: [PATCH] Update build_test.yaml for Azure Pipelines --- ado/build_test.yaml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/ado/build_test.yaml b/ado/build_test.yaml index 3f85406f..64ce58e9 100644 --- a/ado/build_test.yaml +++ b/ado/build_test.yaml @@ -8,23 +8,30 @@ steps: - task: GoTool@0 inputs: version: '1.22.3' -- task: PowerShell@2 - inputs: - targetType: 'inline' - script: 'get-childitem' - task: Go@0 inputs: command: 'get' arguments: '-d -v -t -d ./...' workingDirectory: '$(System.DefaultWorkingDirectory)' + displayName: "Install dependencies" - task: Go@0 inputs: command: 'build' arguments: './apps/...' workingDirectory: '$(System.DefaultWorkingDirectory)' + displayName: "Build" - task: Go@0 - inputs: + inputs: command: 'test' arguments: '-race -short ./apps/cache/... ./apps/confidential/... ./apps/public/... ./apps/internal/...' workingDirectory: '$(System.DefaultWorkingDirectory)' + displayName: "Run Unit Tests" + +- task: Go@0 + inputs: + command: 'test' + arguments: '-race ./apps/tests/integration/...' + workingDirectory: '$(System.DefaultWorkingDirectory)' + displayName: "Run Integration Tests" +