Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .azure/pipelines/templates/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ parameters:
displayName: Run CodeQL3000 tasks
type: boolean


jobs:

# Approval needed for publishing to nuget.org
Expand Down Expand Up @@ -177,6 +176,9 @@ jobs:
targetPath: '$(Build.ArtifactStagingDirectory)/test_outputs_${{category}}_${{framework}}_$(Build.BuildId)'
artifactName: 'test_outputs_${{category}}_${{framework}}_$(System.JobAttempt)'
condition: succeededOrFailed()
variables:
# Transform "net8.0" to "8.0.x" for the second DotNetCoreCLI@2
testFrameworkToInstall: ${{format('{0}.x', replace(upper(framework), 'NET', ''))}}
steps:
- checkout: self
- task: UseDotNet@2
Expand Down Expand Up @@ -207,6 +209,11 @@ jobs:
# AzurePipelinesCredential expect the GUID of the connection, not the name, so let's get it here
Write-Host "##vso[task.setvariable variable=serviceConnectionId]$($env:SERVICE_CONNECTION_ID)"
Get-ChildItem env:
- task: UseDotNet@2
# We need this step because the tested framework can be different from the build framework
inputs:
version: ${{variables.testFrameworkToInstall}}
displayName: 'Install .NET Core sdk used in tests'
- task: DotNetCoreCLI@2
displayName: Test
env:
Expand Down
Loading