-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathazure-pipelines.yml
40 lines (38 loc) · 1.07 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
variables:
buildConfiguration: 'Debug'
jobs:
- job: BuildAndRunCodeAnalysis
displayName: Build and run code analysis
pool:
vmImage: windows-latest
steps:
- task: DotNetCoreCLI@2
displayName: Build solution with code analysis
inputs:
command: build
projects: '*.sln'
arguments: -c $(buildConfiguration) -warnaserror
- job: RunTests
displayName: Run tests
pool:
vmImage: windows-latest
steps:
- task: DotNetCoreCLI@2
displayName: Build solution
inputs:
command: build
projects: '*.sln'
arguments: -c $(buildConfiguration) -p:RunAnalyzers=false
- task: DotNetCoreCLI@2
displayName: Run tests
timeoutInMinutes: 30
continueOnError: true
inputs:
command: test
projects: 'test/*/*Tests.csproj'
arguments: -c $(buildConfiguration) -s "azure-pipelines.runsettings" --no-build
- task: PublishPipelineArtifact@1
displayName: Publish test artifacts
inputs:
artifactName: Test artifacts
targetPath: test/AtataSampleApp.UITests/bin/$(buildConfiguration)/net8.0/artifacts