Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issues #6

Merged
merged 3 commits into from
Feb 27, 2024
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@{
ModuleVersion = '0.0.1'
RootModule = 'PSModule.Process.psm1'
RootModule = 'PSModule.psm1'
Description = 'PSModule Framework Test Module'
}
Original file line number Diff line number Diff line change
@@ -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!"
#>
Expand Down
11 changes: 0 additions & 11 deletions tests/PSModule.Process.Tests.ps1

This file was deleted.

11 changes: 11 additions & 0 deletions tests/PSModule.Tests.ps1
Original file line number Diff line number Diff line change
@@ -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
}
}
Loading