Skip to content

Commit dab91d8

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 1c06436 commit dab91d8

File tree

67 files changed

+8
-568
lines changed

Some content is hidden

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

67 files changed

+8
-568
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-Src-Default.yml

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

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

55
on: [pull_request]
66

.github/workflows/Action-Test-Src-UnnamedWithManifest.yml

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

.github/workflows/Action-Test-Src-UnnamedFolder.yml renamed to .github/workflows/Action-Test-Src-WithManifest.yml

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

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

55
on: [pull_request]
66

@@ -20,7 +20,7 @@ jobs:
2020
include:
2121
- os: windows-latest
2222
shell: powershell
23-
name: Action-Test [Src-UnnamedFolder] - [${{ matrix.os }}@${{ matrix.shell }}]
23+
name: Action-Test [Src-WithManifest] - [${{ matrix.os }}@${{ matrix.shell }}]
2424
runs-on: ${{ matrix.os }}
2525
steps:
2626
- name: Checkout repo
@@ -37,6 +37,6 @@ jobs:
3737
GITHUB_TOKEN: ${{ github.token }}
3838
with:
3939
Name: PSModuleTest
40-
Path: tests/srcNo
40+
Path: tests/srcWithManifest
4141
Shell: ${{ matrix.shell }}
4242
TestType: SourceCode

.github/workflows/Action-Test-outputs.yml

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

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

55
on: [pull_request]
66

.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: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,3 @@ jobs:
2727
uses: super-linter/super-linter@latest
2828
env:
2929
GITHUB_TOKEN: ${{ github.token }}
30-
FILTER_REGEX_EXCLUDE: ${{ github.workspace }}/tests

tests/src/PSModuleTest/PSModuleTest.psd1

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

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.

0 commit comments

Comments
 (0)