diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 29cde5cc..c881f7da 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -260,10 +260,18 @@ jobs: Version: ${{ inputs.Version }} - name: Commit all changes + continue-on-error: true + shell: pwsh run: | + # Rename the gitignore file to .gitignore.bak + Rename-Item -Path '.gitignore' -NewName '.gitignore.bak' -Force + git add . git commit -m 'Update documentation' + # Restore the gitignore file + Rename-Item -Path '.gitignore.bak' -NewName '.gitignore' -Force + - name: Lint documentation uses: super-linter/super-linter/slim@latest env: diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 410439a8..24be9dff 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -267,10 +267,18 @@ jobs: Version: ${{ inputs.Version }} - name: Commit all changes + continue-on-error: true + shell: pwsh run: | + # Rename the gitignore file to .gitignore.bak + Rename-Item -Path '.gitignore' -NewName '.gitignore.bak' -Force + git add . git commit -m 'Update documentation' + # Restore the gitignore file + Rename-Item -Path '.gitignore.bak' -NewName '.gitignore' -Force + - name: Lint documentation uses: super-linter/super-linter/slim@latest env: diff --git a/tests/srcTestRepo/src/functions/public/completers.ps1 b/tests/srcTestRepo/src/functions/public/completers.ps1 new file mode 100644 index 00000000..6b1adbb7 --- /dev/null +++ b/tests/srcTestRepo/src/functions/public/completers.ps1 @@ -0,0 +1,8 @@ +Register-ArgumentCompleter -CommandName New-PSModuleTest -ParameterName Name -ScriptBlock { + param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters) + $null = $commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters + + 'Alice', 'Bob', 'Charlie' | Where-Object { $_ -like "$wordToComplete*" } | ForEach-Object { + [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_) + } +} diff --git a/tests/srcWithManifestTestRepo/src/functions/public/Test-PSModuleTest.ps1 b/tests/srcWithManifestTestRepo/src/functions/public/Test-PSModuleTest.ps1 index 4056e2f6..26be2b9b 100644 --- a/tests/srcWithManifestTestRepo/src/functions/public/Test-PSModuleTest.ps1 +++ b/tests/srcWithManifestTestRepo/src/functions/public/Test-PSModuleTest.ps1 @@ -1,5 +1,4 @@ -#SkipTest:Verbose:Just want to test that a function can have multiple skips. -function Test-PSModuleTest { +function Test-PSModuleTest { <# .SYNOPSIS Performs tests on a module. @@ -16,5 +15,4 @@ function Test-PSModuleTest { [string] $Name ) Write-Output "Hello, $Name!" - Write-Verbose 'Verbose message' -Verbose }