You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Description
This pull request introduces the `Install-PSModuleHelpers` GitHub
Action, a foundational component within the PSModule framework. Its
primary role is to install and configure the shared helper modules that
underpin the PSModule ecosystem, ensuring a consistent and reliable
environment for subsequent actions and workflows.
### PowerShell Module Enhancements:
* Added a new `Helpers` module (`scripts/Helpers/Helpers.psm1`) with
functions for version specification conversion (`Convert-VersionSpec`),
module dependency resolution (`Resolve-PSModuleDependency`), and module
installation (`Install-PSModule`). These functions streamline module
management and dependency handling.
* Introduced a module manifest for the `Helpers` module
(`scripts/Helpers/Helpers.psd1`) with versioning and root module
configuration.
* Added a configuration file for PSScriptAnalyzer rules
(`scripts/Helpers/PSScriptAnalyzer.Tests.psd1`) to enforce consistent
PowerShell coding standards.
### Workflow and Configuration Updates:
* Updated the `action.yml` file to rename the action to
`Install-PSModuleHelpers` and removed outdated inputs and steps,
simplifying the action's functionality.
* Modified `.github/workflows/Action-Test.yml` to remove unused inputs,
aligning the workflow with the updated action.
* Updated the `.jscpd.json` file to exclude `linters` from code
duplication checks.
### Script Improvements:
* Refactored `scripts/main.ps1` to remove legacy code and integrate the
new `Helpers` module, ensuring proper module import and cleanup.
These changes collectively enhance the modularity, maintainability, and
consistency of the PowerShell scripts and workflows.
## Type of change
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [ ] 📖 [Docs]
- [ ] 🪲 [Fix]
- [ ] 🩹 [Patch]
- [ ] ⚠️ [Security fix]
- [ ] 🚀 [Feature]
- [x] 🌟 [Breaking change]
## Checklist
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
0 commit comments