forked from kekekeks/XamlX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
72 lines (64 loc) · 2.21 KB
/
Copy pathazure-pipelines.yml
File metadata and controls
72 lines (64 loc) · 2.21 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-24.04'
steps:
- task: UseDotNet@2
displayName: 'Use .NET SDK 10.0.100'
inputs:
version: 10.0.100-rc.2.25502.107
includePreviewVersions: true
- task: UseDotNet@2
displayName: 'Use .NET Runtime 8.0'
inputs:
packageType: runtime
version: 8.0.x
- script: |
sudo apt-get update
sudo apt-get install -y mono-complete
displayName: 'Install Mono'
- task: CmdLine@2
displayName: 'Run Tests'
inputs:
script: |
mono --version
dotnet --info
dotnet build
dotnet test -f net10.0 --logger "trx" --results-directory artifacts/test-results
dotnet test -f net8.0 --logger "trx" --results-directory artifacts/test-results
dotnet test -f net47 --logger "trx" --results-directory artifacts/test-results
- task: PublishTestResults@2
inputs:
testResultsFormat: 'VSTest'
testResultsFiles: '$(Build.SourcesDirectory)/artifacts/test-results/*.trx'
condition: not(canceled())
- job: Windows
pool:
vmImage: 'windows-2025'
variables:
SolutionDir: '$(Build.SourcesDirectory)'
steps:
- task: UseDotNet@2
displayName: 'Use .NET SDK 10.0.100'
inputs:
version: 10.0.100-rc.2.25502.107
includePreviewVersions: true
- task: UseDotNet@2
displayName: 'Use .NET Runtime 8.0'
inputs:
packageType: runtime
version: 8.0.x
- task: CmdLine@2
displayName: 'Run Tests'
inputs:
script: |
dotnet --info
dotnet build
dotnet test -f net10.0 --logger "trx" --results-directory artifacts/test-results
dotnet test -f net8.0 --logger "trx" --results-directory artifacts/test-results
dotnet test -f net47 --logger "trx" --results-directory artifacts/test-results
- task: PublishTestResults@2
inputs:
testResultsFormat: 'VSTest'
testResultsFiles: '$(Build.SourcesDirectory)/artifacts/test-results/*.trx'
condition: not(canceled())