Skip to content

Commit d5372e7

Browse files
committed
Add Testresults, New SemVerId
1 parent 1c9d5ac commit d5372e7

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

azure-pipelines.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,19 @@ pool:
1212
steps:
1313
- powershell: |
1414
Install-Module PSScriptAnalyzer
15-
invoke-Pester -Path ./Tests
15+
Invoke-Pester -Path ./Tests -OutputFormat NUnitXml -OutputFile TestResults.xml -PassThru
1616
displayName: 'Pester'
17+
18+
- task: PublishTestResults@2
19+
inputs:
20+
testResultsFormat: 'NUnit'
21+
testResultsFiles: '**/Test*.xml'
22+
23+
- powershell: |
24+
$Module = find-module psgitchangelog
25+
26+
[version]$Version = $Module.Version
27+
28+
$NewVersion = "{0}.{1}.{2}" -f $version.Major,$version.Minor,($version.Build + 1)
29+
30+
$NewVersion

0 commit comments

Comments
 (0)