Skip to content

Commit 981d56a

Browse files
committed
Update azure_pull_request.yml for Azure Pipelines
1 parent ca355e2 commit 981d56a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

azure_pull_request.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ variables:
88
prPipeline: $[eq(variables['Build.Reason'], 'PullRequest')]
99

1010
steps:
11+
- task: NuGetCommand@2
12+
displayName: 'NuGet restore'
13+
inputs:
14+
restoreSolution: AzureDevopsTracker.csproj
15+
feedsToUse: config
16+
nugetConfigPath: packages.config
17+
1118
- task: SonarSource.sonarcloud.14d9cde6-c1da-4d55-aa01-2965cd301255.SonarCloudPrepare@1
1219
displayName: 'Prepare analysis on SonarCloud'
1320
inputs:
@@ -25,6 +32,11 @@ steps:
2532
script: dotnet test --configuration $(BuildConfiguration) /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --collect "Code Coverage" /p:Exclude=[xunit.*]*
2633
displayName: 'Run Tests'
2734

35+
- task: NuGetCommand@2
36+
displayName: 'NuGet pack'
37+
inputs:
38+
command: pack
39+
2840
- task: SonarSource.sonarcloud.ce096e50-6155-4de8-8800-4221aaeed4a1.SonarCloudAnalyze@1
2941
displayName: 'Run Code Analysis'
3042

0 commit comments

Comments
 (0)