Skip to content

Commit c4982c8

Browse files
🩹 [Patch]: Alignment (#22)
## 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 b0ef46e commit c4982c8

Some content is hidden

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

46 files changed

+21
-85
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/Auto-Release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Auto-Release
22

3-
run-name: "${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }} by @${{ github.actor }}"
3+
run-name: "Auto-Release - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
44

55
on:
66
pull_request_target:

.github/workflows/Linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Linter
22

3-
run-name: "${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }} by @${{ github.actor }}"
3+
run-name: "Linter - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
44

55
on: [pull_request]
66

.github/workflows/Workflow-Test-Default.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Workflow-Test [Default]
22

3-
run-name: "${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }} by @${{ github.actor }}"
3+
run-name: "Workflow-Test [Default] - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
44

55
on: [pull_request]
66

.github/workflows/Workflow-Test-Unnamed.yml renamed to .github/workflows/Workflow-Test-WithManifest.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: Workflow-Test [UnnamedFolder]
1+
name: Workflow-Test [WithManifest]
22

3-
run-name: "${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }} by @${{ github.actor }}"
3+
run-name: "Workflow-Test [WithManifest] - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
44

55
on: [pull_request]
66

@@ -14,12 +14,12 @@ permissions:
1414
statuses: write
1515

1616
jobs:
17-
WorkflowTestUnnamedFolder:
17+
WorkflowTestWithManifest:
1818
uses: ./.github/workflows/workflow.yml
1919
secrets: inherit
2020
with:
2121
Name: PSModuleTest
22-
Path: tests/srcNo
22+
Path: tests/srcWithManifest
2323
ModulesOutputPath: tests/outputs/modules
2424
DocsOutputPath: tests/outputs/docs
2525
TestProcess: true

tests/src/PSModuleTest/PSModuleTest.psd1

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

tests/src/PSModuleTest/PSModuleTest.psm1

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

0 commit comments

Comments
 (0)