Skip to content

Commit

Permalink
Allow to execute steps after tests (#11)
Browse files Browse the repository at this point in the history
Co-authored-by: Wim Vergouwe <[email protected]>
  • Loading branch information
WimVergouwe and Wim Vergouwe authored Nov 5, 2021
1 parent c8d0beb commit 3781b17
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions azure/pipelines/dotnet/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 3781b17

Please sign in to comment.