Skip to content

Commit 776e27b

Browse files
🩹 [Patch]: Alignment (#47)
## Description - Skip checking manifest fields on linting (PSMissingModuleManifestField) for test code. Required fields are generated in the process. - No longer test with source code that is inside a intermediate module folder. (src/<ModuleName>/*). ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [x] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [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
1 parent a4418b9 commit 776e27b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+4
-539
lines changed

.github/linters/.powershell-psscriptanalyzer.psd1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#)
99
#IncludeDefaultRules=${true}
1010
ExcludeRules = @(
11+
'PSMissingModuleManifestField'
1112
'PSAvoidUsingWriteHost'
1213
)
1314
#IncludeRules = @(

.github/workflows/Action-Test.yml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ jobs:
3232
ModulesOutputPath: tests/outputs/modules
3333
DocsOutputPath: tests/outputs/docs
3434

35-
ActionTestUnnamedFolder:
36-
name: Action-Test - [UnnamedFolder]
35+
ActionTestWithManifest:
36+
name: Action-Test - [DefaultWithManifest]
3737
runs-on: ubuntu-latest
3838
steps:
3939
- name: Checkout repo
@@ -46,24 +46,6 @@ jobs:
4646
uses: ./
4747
with:
4848
Name: PSModuleTest
49-
Path: tests/srcNo
50-
ModulesOutputPath: tests/outputs/modules
51-
DocsOutputPath: tests/outputs/docs
52-
53-
ActionTestUnnamedFolderWithManifest:
54-
name: Action-Test - [UnnamedFolderWithManifest]
55-
runs-on: ubuntu-latest
56-
steps:
57-
- name: Checkout repo
58-
uses: actions/checkout@v4
59-
60-
- name: Initialize environment
61-
uses: PSModule/Initialize-PSModule@main
62-
63-
- name: Action-Test
64-
uses: ./
65-
with:
66-
Name: PSModuleTest
67-
Path: tests/srcNoWithManifest
49+
Path: tests/srcWithManifest
6850
ModulesOutputPath: tests/outputs/modules
6951
DocsOutputPath: tests/outputs/docs

tests/src/PSModuleTest/PSModuleTest.psm1

Lines changed: 0 additions & 73 deletions
This file was deleted.

tests/src/PSModuleTest/finally.ps1

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/src/PSModuleTest/init/initializer.ps1

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/src/PSModuleTest/scripts/loader.ps1

Lines changed: 0 additions & 5 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)