Skip to content

Commit cc8c08f

Browse files
authored
Update adt_pull_request.yml
1 parent 915645c commit cc8c08f

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

adt_pull_request.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,19 @@ variables:
1414
prPipeline: $[eq(variables['Build.Reason'], 'PullRequest')]
1515

1616
steps:
17-
- script: dotnet build --configuration $(buildConfiguration)
18-
displayName: 'dotnet build $(buildConfiguration)'
17+
- task: UseDotNet@2
18+
displayName: 'Install .NET Core SDK'
19+
inputs:
20+
version: 5.x
21+
performMultiLevelLookup: true
22+
includePreviewVersions: true # Required
23+
24+
- task: DotNetCoreCLI@2
25+
displayName: Build
26+
inputs:
27+
command: build
28+
projects: '**/*.csproj'
29+
arguments: '--configuration $(buildConfiguration)'
1930

2031
- task: DotNetCoreCLI@2
2132
displayName: Rodando os testes da aplicação
@@ -32,4 +43,4 @@ steps:
3243
arguments: 'dotnet sonarscanner begin /k:"$(SONAR_PROJECT_KEY)" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="$(SONAR_TOKEN)" /d:sonar.cs.dotcover.reportsPaths=dotCover.Output.html
3344
dotnet build –no-incremental
3445
dotnet dotcover test --dcReportType=HTML
35-
dotnet sonarscanner end /d:sonar.login="$(SONAR_TOKEN)"'
46+
dotnet sonarscanner end /d:sonar.login="$(SONAR_TOKEN)"'

0 commit comments

Comments
 (0)