Skip to content

Commit 10513c5

Browse files
🩹 [Patch]: Add comment for faster testing and ensure linter environment variables are defined (#10)
## Description This pull request updates the `.github/PSModule.yml` configuration to allow for more flexible and faster testing and linting workflows. The main changes introduce new environment variables to selectively disable specific linter validations and provide a commented-out option to skip some test steps. Workflow configuration improvements: * Added environment variables under the new `Linter` section to allow disabling of various linter validations, including Biome format/lint, GitHub Actions Zizmor, JSCPD, and Prettier checks for JSON, Markdown, and YAML. Test workflow flexibility: * Added a commented-out configuration option to skip some test steps for faster testing during development.
1 parent f93df08 commit 10513c5

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed

‎.github/PSModule.yml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Test:
66
CodeCoverage:
77
PercentTarget: 0
8+
# Uncomment this to test faster by skipping some steps
89
# TestResults:
910
# Skip: true
1011
# SourceCode:
@@ -19,3 +20,12 @@ Test:
1920
# Build:
2021
# Docs:
2122
# Skip: true
23+
Linter:
24+
env:
25+
VALIDATE_BIOME_FORMAT: false
26+
VALIDATE_BIOME_LINT: false
27+
VALIDATE_GITHUB_ACTIONS_ZIZMOR: false
28+
VALIDATE_JSCPD: false
29+
VALIDATE_JSON_PRETTIER: false
30+
VALIDATE_MARKDOWN_PRETTIER: false
31+
VALIDATE_YAML_PRETTIER: false

‎src/functions/public/Get-PSModuleTest.ps1‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ function Get-PSModuleTest {
55
.SYNOPSIS
66
Performs tests on a module.
77
8+
.DESCRIPTION
9+
Performs tests on a module.
10+
811
.EXAMPLE
912
Test-PSModule -Name 'World'
1013

‎src/functions/public/New-PSModuleTest.ps1‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ function New-PSModuleTest {
55
.SYNOPSIS
66
Performs tests on a module.
77
8+
.DESCRIPTION
9+
Performs tests on a module.
10+
811
.EXAMPLE
912
Test-PSModule -Name 'World'
1013

‎src/functions/public/Set-PSModuleTest.ps1‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
.SYNOPSIS
44
Performs tests on a module.
55
6+
.DESCRIPTION
7+
Performs tests on a module.
8+
69
.EXAMPLE
710
Test-PSModule -Name 'World'
811

‎src/functions/public/Test-PSModuleTest.ps1‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
.SYNOPSIS
44
Performs tests on a module.
55
6+
.DESCRIPTION
7+
Performs tests on a module.
8+
69
.EXAMPLE
710
Test-PSModule -Name 'World'
811

0 commit comments

Comments
 (0)