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 includes several changes to improve the GitHub Actions
workflows, update the documentation, and enhance the PSScriptAnalyzer
settings.
### Documentation Updates
* Updated `README.md` to improve clarity, add dependencies, and update
the example workflow section.
* Added a new `Settings.md` file to document the PSScriptAnalyzer
settings file format and key configuration options.
### Custom PSScriptAnalyzer Settings
* Added a new workflow configuration file
`.github/workflows/Action-Test-Src-Default-Custom.yml` to run tests
showing that the `Custom` settings and a `SettingsPath` works as it
should.
* Added a new custom settings file
`tests/srcTestRepo/tests/Custom.Settings.psd1` with specific rules and
configurations for PSScriptAnalyzer.
* Fixed `scripts/tests/PSScriptAnalyzer/PSScriptAnalyzer.Tests.ps1` to
include new log outputs and rule evaluation logic. This now skips tests
as per the settings file that is used.
## Type of change
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [ ] 📖 [Docs]
- [ ] 🪲 [Fix]
- [ ] 🩹 [Patch]
- [ ] ⚠️ [Security fix]
- [ ] 🚀 [Feature]
- [ ] 🌟 [Breaking change]
## Checklist
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
|**Path**| The path to the code to test. | Yes |`${{ github.workspace }}`|
24
-
|**Settings**| The type of tests to run: `Module`, `SourceCode`, or `Custom`. | No |`Custom`|
25
-
|**SettingsFilePath**| If `Custom` is selected, the path to the settings file. | No |`${{ github.workspace }}/.github/linters/.powershell-psscriptanalyzer.psd1`|
|**Path**| The path to the code to test. | Yes |`${{ github.workspace }}`|
21
+
|**Settings**| The type of tests to run: `Module`, `SourceCode`, or `Custom`. | No |`Custom`|
22
+
|**SettingsFilePath**| If `Custom` is selected, the path to the settings file. | No |`${{ github.workspace }}/.github/linters/.powershell-psscriptanalyzer.psd1`|
0 commit comments