Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/Action-Test-Src-Default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Action-Test
uses: ./
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Action-Test-Src-WithManifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Action-Test
uses: ./
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Action-Test-outputs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Action-Test
uses: ./
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Auto-Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Auto-Release
uses: PSModule/Auto-Release@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0

Expand Down
2 changes: 1 addition & 1 deletion scripts/tests/Module/PSModule/PSModule.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Justification = 'Log outputs to GitHub Actions logs.'
)]
[CmdLetBinding()]
Param(
param(
[Parameter(Mandatory)]
[string] $Path
)
Expand Down
21 changes: 10 additions & 11 deletions scripts/tests/SourceCode/PSModule/PSModule.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@
'PSAvoidUsingWriteHost', '',
Justification = 'Logging to Github Actions.'
)]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
'PSAvoidLongLines', '',
Justification = 'Consistent formatting of ternary operator usage'
)]
[CmdLetBinding()]
Param(
param(
# The path to the 'src' folder of the repo.
[Parameter(Mandatory)]
[string] $Path,
Expand All @@ -40,8 +44,7 @@ BeforeAll {
}
Write-Host '::endgroup::'
$privateFunctionsPath = Join-Path -Path $functionsPath -ChildPath 'private'
$privateFunctionFiles = (Test-Path -Path $privateFunctionsPath) ?
(Get-ChildItem -Path $privateFunctionsPath -File -Filter '*.ps1' -Recurse) : $null
$privateFunctionFiles = (Test-Path -Path $privateFunctionsPath) ? (Get-ChildItem -Path $privateFunctionsPath -File -Filter '*.ps1' -Recurse) : $null
Write-Host "::group:: - Private [$($privateFunctionFiles.Count)]"
$privateFunctionFiles | ForEach-Object {
Write-Host " - $($_.FullName)"
Expand All @@ -62,16 +65,14 @@ BeforeAll {
}
Write-Host '::endgroup::'
$privateVariablesPath = Join-Path -Path $variablesPath -ChildPath 'private'
$privateVariableFiles = (Test-Path -Path $privateVariablesPath) ?
(Get-ChildItem -Path $privateVariablesPath -File -Filter '*.ps1' -Recurse) : $null
$privateVariableFiles = (Test-Path -Path $privateVariablesPath) ? (Get-ChildItem -Path $privateVariablesPath -File -Filter '*.ps1' -Recurse) : $null
Write-Host "::group:: - Private [$($privateVariableFiles.Count)]"
$privateVariableFiles | ForEach-Object {
Write-Host " - $($_.FullName)"
}
Write-Host '::endgroup::'
$publicVariablesPath = Join-Path -Path $variablesPath -ChildPath 'public'
$publicVariableFiles = (Test-Path -Path $publicVariablesPath) ?
(Get-ChildItem -Path $publicVariablesPath -File -Filter '*.ps1' -Recurse) : $null
$publicVariableFiles = (Test-Path -Path $publicVariablesPath) ? (Get-ChildItem -Path $publicVariablesPath -File -Filter '*.ps1' -Recurse) : $null
Write-Host "::group:: - Public [$($publicVariableFiles.Count)]"
$publicVariableFiles | ForEach-Object {
Write-Host " - $($_.FullName)"
Expand All @@ -85,16 +86,14 @@ BeforeAll {
}
Write-Host '::endgroup::'
$privateClassPath = Join-Path -Path $classPath -ChildPath 'private'
$privateClassFiles = (Test-Path -Path $privateClassPath) ?
(Get-ChildItem -Path $privateClassPath -File -Filter '*.ps1' -Recurse) : $null
$privateClassFiles = (Test-Path -Path $privateClassPath) ? (Get-ChildItem -Path $privateClassPath -File -Filter '*.ps1' -Recurse) : $null
Write-Host "::group:: - Private [$($privateClassFiles.Count)]"
$privateClassFiles | ForEach-Object {
Write-Host " - $($_.FullName)"
}
Write-Host '::endgroup::'
$publicClassPath = Join-Path -Path $classPath -ChildPath 'public'
$publicClassFiles = (Test-Path -Path $publicClassPath) ?
(Get-ChildItem -Path $publicClassPath -File -Filter '*.ps1' -Recurse) : $null
$publicClassFiles = (Test-Path -Path $publicClassPath) ? (Get-ChildItem -Path $publicClassPath -File -Filter '*.ps1' -Recurse) : $null
Write-Host "::group:: - Public [$($publicClassFiles.Count)]"
$publicClassFiles | ForEach-Object {
Write-Host " - $($_.FullName)"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[CmdletBinding()]
Param(
param(
# Path to the module to test.
[Parameter()]
[string] $Path
Expand Down
2 changes: 1 addition & 1 deletion tests/srcTestRepo/tests/PSModuleTest.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[CmdletBinding()]
Param(
param(
# Path to the module to test.
[Parameter()]
[string] $Path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[CmdletBinding()]
Param(
param(
# Path to the module to test.
[Parameter()]
[string] $Path
Expand Down
Loading