-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
azure-test.yml
42 lines (36 loc) · 1.27 KB
/
azure-test.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
41
42
parameters:
os: ''
steps:
- task: DotNetCoreInstaller@1
displayName: Installing .NET 6 SDK
inputs:
includePreviewVersions: true
packageType: 'sdk' # Options: runtime, sdk
version: '6.0.101'
- task: NuGetToolInstaller@0
displayName: Installing NuGet CLI
inputs:
versionSpec: '5.x'
checkLatest: true
- checkout: self
persistCredentials: true
submodules: "recursive"
fetchDepth: 1
lfs: false
- script: |
dotnet run --project build -- Test
displayName: Compile and test commit
condition: not(variables['build.skiptest'])
- task: PublishTestResults@2
condition: not(variables['build.skiptest'])
displayName: Publish test results to Azure
inputs:
testResultsFormat: 'VSTest' # Options: JUnit, NUnit, VSTest, xUnit, cTest
testResultsFiles: '*.trx'
searchFolder: '$(System.DefaultWorkingDirectory)/src/Snowflake.Framework.Tests/TestResults'
- task: PublishCodeCoverageResults@1
condition: not(variables['build.skiptest'])
displayName: Publish test coverage to Azure
inputs:
codeCoverageTool: 'cobertura' # Options: cobertura, jaCoCo
summaryFileLocation: $(System.DefaultWorkingDirectory)/src/Snowflake.Framework.Tests/TestResults/**/coverage.cobertura.xml