Skip to content

Add module dependency support #27

@TsekNet

Description

@TsekNet

Description

As part of getting started with Catesta, I had to dig through the code base to find where to import the module dependencies for my PowerShell module. I found the actions_bootstrap.ps1 file, and determined that I needed to add my module imports there.

For additional context, I was not able to initially start using Catesta until I added my module imports to the actions_bootstrap.ps1 script, as my tests were failing due to missing module dependencies.

I noticed a note in the build.ps1 script about dependency installation not being included, but was not able to find further documentation on that comment.

See this failed action for an example of the error I ran into, and this commit for how I resolved this issue.

Describe the solution you'd like

Ideally, during setup, Catesta would have an additional prompt that asks you which modules you would like to install as dependencies. This should add the required modules to the module manifest and the appropriate workflow script.

Describe any alternatives you've considered

Alternatively, update/add documentation on how to avoid this issue for users getting started with Catesta.

Additional context

Example broken action run: https://github.com/TsekNet/TsekProfile/runs/1078982174?check_suite_focus=true
Fixed issue in my repo: TsekNet/TsekProfile@2257337

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionCommunity input on issuedesiredenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions