diff --git a/README.md b/README.md index 37ab18b..4ca5b9a 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ The following secrets are required for the workflow to run | Name | Location | Description | Default | | ---- | -------- | ----------- | ------- | | `GITHUB_TOKEN` | `github` context | The token used to authenticate with GitHub. | ${{ secrets.GITHUB_TOKEN }} | -| `APIKey` | github secrets | The API key for the PowerShell Gallery. | N/A | +| `APIKey` | GitHub secrets | The API key for the PowerShell Gallery. | N/A | ## In detail diff --git a/src/PSModule.Process/PSModule.Process.psd1 b/src/PSModule/PSModule.psd1 similarity index 66% rename from src/PSModule.Process/PSModule.Process.psd1 rename to src/PSModule/PSModule.psd1 index 7cea5f3..f2ac5e2 100644 --- a/src/PSModule.Process/PSModule.Process.psd1 +++ b/src/PSModule/PSModule.psd1 @@ -1,5 +1,5 @@ @{ ModuleVersion = '0.0.1' - RootModule = 'PSModule.Process.psm1' + RootModule = 'PSModule.psm1' Description = 'PSModule Framework Test Module' } diff --git a/src/PSModule.Process/PSModule.Process.psm1 b/src/PSModule/PSModule.psm1 similarity index 100% rename from src/PSModule.Process/PSModule.Process.psm1 rename to src/PSModule/PSModule.psm1 diff --git a/src/PSModule.Process/public/Test-PSModuleTestWF.ps1 b/src/PSModule/public/Test-PSModule.ps1 similarity index 78% rename from src/PSModule.Process/public/Test-PSModuleTestWF.ps1 rename to src/PSModule/public/Test-PSModule.ps1 index 8290c97..131dcff 100644 --- a/src/PSModule.Process/public/Test-PSModuleTestWF.ps1 +++ b/src/PSModule/public/Test-PSModule.ps1 @@ -1,10 +1,10 @@ -Function Test-PSModuleTestWF { +Function Test-PSModule { <# .SYNOPSIS Performs tests on a module. .EXAMPLE - Test-PSModuleTestWF -Name 'World' + Test-PSModule -Name 'World' "Hello, World!" #> diff --git a/tests/PSModule.Process.Tests.ps1 b/tests/PSModule.Process.Tests.ps1 deleted file mode 100644 index 04c1c93..0000000 --- a/tests/PSModule.Process.Tests.ps1 +++ /dev/null @@ -1,11 +0,0 @@ -Describe 'PSModule.Process.Tests.ps1' { - It "Should be able to import the module" { - Import-Module -Name 'PSModule.Process' - Get-Module -Name 'PSModule.Process' | Should -Not -BeNullOrEmpty - Write-Verbose (Get-Module -Name 'PSModule.Process' | Out-String) -Verbose - } - It "Should be able to call the function" { - Test-PSModuleTestWF -Name 'World' | Should -Be "Hello, World!" - Write-Verbose (Test-PSModuleTestWF -Name 'World' | Out-String) -Verbose - } -} diff --git a/tests/PSModule.Tests.ps1 b/tests/PSModule.Tests.ps1 new file mode 100644 index 0000000..2e15211 --- /dev/null +++ b/tests/PSModule.Tests.ps1 @@ -0,0 +1,11 @@ +Describe 'PSModule.Tests.ps1' { + It "Should be able to import the module" { + Import-Module -Name 'PSModule' + Get-Module -Name 'PSModule' | Should -Not -BeNullOrEmpty + Write-Verbose (Get-Module -Name 'PSModule' | Out-String) -Verbose + } + It "Should be able to call the function" { + Test-PSModule -Name 'World' | Should -Be "Hello, World!" + Write-Verbose (Test-PSModule -Name 'World' | Out-String) -Verbose + } +}