diff --git a/azure/pipelines/dotnet/ci.yml b/azure/pipelines/dotnet/ci.yml index 1c10124..332a000 100644 --- a/azure/pipelines/dotnet/ci.yml +++ b/azure/pipelines/dotnet/ci.yml @@ -21,6 +21,10 @@ parameters: type: stepList default: [] displayName: 'Optional steps to execute before test execution.' +- name: AfterTestsSteps + type: stepList + default: [] + displayName: 'Optional steps to execute after test execution.' - name: NoTests type: boolean default: false @@ -159,6 +163,8 @@ steps: projects: '**/*[Tt]ests/*.csproj' arguments: '--configuration ${{ parameters.BuildConfiguration }} --no-restore --no-build' condition: succeededOrFailed() + - ${{ each step in parameters.AfterTestsSteps }}: + - ${{ step }} - ${{ if and( eq(parameters.WithPack, 'true'), eq(parameters.WithRelease, 'true') ) }}: # Push NuGets.