Closed james-garriss closed 4 days ago
Summary of reasons for using functions in .ps1 files for workflow code:
1) They should not be part of the SG module, and there is no need for a testing module. 2) Functions support standard PowerShell options like -Debug. 3) Functions are easy to integrate into Pester tests.
Thus, the goal is move all workflow code into functions in .ps1 files and write unit tests for them that are executed by the workflow CI pipeline.
@nanda-katikaneni
Ran functional tests, jobs pass excluding known SharePoint failures: https://github.com/cisagov/ScubaGear/actions/runs/11963450431 Ran workflow pipeline, pass: https://github.com/cisagov/ScubaGear/actions/runs/11963470997
π£ Description
These two workflow functions were converted from modules to just functions. There was no change in functionality.
π Motivation and context
Closes: #1429
π§ͺ Testing
Tested via functional tests workflow and the workflow pipeline
β Pre-approval checklist
β Pre-merge checklist
β Post-merge checklist