ResourceModules icon indicating copy to clipboard operation
ResourceModules copied to clipboard

[Feature Request]: Add pipeline runtime parameters to test e.g. only pester tests

Open AlexanderSehr opened this issue 3 years ago • 2 comments

Description

Add pipeline runtime parameters to test e.g. only pester tests.

If one is only working on Pester tests it is a bit unfortunate that one has also to run the deployment tests.

However, when adding such a parameter we have to make sure a module is still only published if all tests ran (-> Including the deployment tests). This could be achived by adjusting the publish-job condition to only run if 'needs.xzy' is in status succeeded. Thus, if a dependency would be skipped (and hence the status would indicate it as such) the publish would still not run.

AlexanderSehr avatar May 08 '22 10:05 AlexanderSehr

Tested a first implementation. While it is definetely possible with Azure DevOps, GitHub actions don't support conditional dependencies: https://github.com/Azure/ResourceModules/actions/runs/2457364409

As a result it is for example not possible to 'skip' the static validation, as the deployment validation will then refuse to run

AlexanderSehr avatar Jun 07 '22 21:06 AlexanderSehr

Team decides to implement as @MrMCake suggested

rahalan avatar Aug 04 '22 15:08 rahalan