Skip to content

Commit fe0e0f2

Browse files
authored
ci: 🔧Update pipelines for v4 (#1326)
1 parent c78af12 commit fe0e0f2

File tree

2 files changed

+29
-14
lines changed

2 files changed

+29
-14
lines changed

azure-pipelines-pr.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ trigger: none
88
pr:
99
branches:
1010
include:
11-
- master
12-
- release/*
11+
- master
12+
- release/*
1313
paths:
1414
exclude:
15-
- '*.md'
16-
- '*.png'
17-
- '*.gitignore'
15+
- '**/*.png'
16+
- '**/*.md'
17+
- '*.gitignore'
1818

1919
pool:
2020
vmImage: windows-latest
@@ -36,6 +36,15 @@ stages:
3636
submodules: false
3737
fetchTags: false
3838

39+
- task: InstallNanoMSBuildComponents@1
40+
displayName: Install .NET nanoFramework MSBuild components
41+
42+
- task: UseDotNet@2
43+
displayName: Install net5.0
44+
inputs:
45+
packageType: 'sdk'
46+
version: '5.0.x'
47+
3948
- task: PowerShell@2
4049
displayName: 'Build, test, pack'
4150
inputs:

azure-pipelines.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
# Starter pipeline
2-
# Start with a minimal pipeline that you can customize to build and deploy your code.
3-
# Add steps that build, run tests, deploy, and more:
4-
# https://aka.ms/yaml
1+
# CI pipeline
2+
# - For pull requests see azure-pipelines-pr.yml
53

64
pr: none
75
trigger:
@@ -37,11 +35,11 @@ stages:
3735
- task: InstallNanoMSBuildComponents@1
3836
displayName: Install .NET nanoFramework MSBuild components
3937

40-
- task: UseDotNet@2
41-
displayName: Install net5.0
42-
inputs:
43-
packageType: 'sdk'
44-
version: '5.0.x'
38+
- task: UseDotNet@2
39+
displayName: Install net5.0
40+
inputs:
41+
packageType: 'sdk'
42+
version: '5.0.x'
4543

4644
- task: PowerShell@2
4745
displayName: 'Build, test, pack'
@@ -53,6 +51,14 @@ stages:
5351
pwsh: true
5452
workingDirectory: '$(Build.SourcesDirectory)'
5553

54+
- task: PublishTestResults@2
55+
condition: always()
56+
inputs:
57+
testResultsFormat: "VSTest"
58+
testResultsFiles: "*.trx"
59+
searchFolder: $(Build.SourcesDirectory)\Artifacts\TestResults
60+
mergeTestResults: true
61+
5662
- task: PowerShell@2
5763
displayName: Upload to codecov.io
5864
env:

0 commit comments

Comments
 (0)