Skip to content

Commit

Permalink
🩹 [Patch]: Align code and process (#10)
Browse files Browse the repository at this point in the history
## Description

🩹 [Patch]: Align code and process

## Type of change

<!-- Use the check-boxes [x] on the options that are relevant. -->

- [ ] 📖 [Docs]
- [ ] 🪲 [Fix]
- [x] 🩹 [Patch]
- [ ] ⚠️ [Security fix]
- [ ] 🚀 [Feature]
- [ ] 🌟 [Breaking change]

## Checklist

<!-- Use the check-boxes [x] on the options that are relevant. -->

- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
  • Loading branch information
MariusStorhaug authored Mar 28, 2024
1 parent 2c45788 commit bd24b05
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/Linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ run-name: "Linter - [${{ github.event.pull_request.title }} #${{ github.event.pu

on: [pull_request]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read
packages: read
statuses: write # To report GitHub Actions status checks
statuses: write

jobs:
Lint:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/Process-PSModule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ on:
- labeled

concurrency:
group: ${{ github.workflow }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write
Expand Down
23 changes: 23 additions & 0 deletions tests/WoW.Tests.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
'PSAvoidUsingConvertToSecureStringWithPlainText', '', Justification = 'Test code only'
)]
[CmdletBinding()]
Param(
# Path to the module to test.
[Parameter()]
[string] $Path
)

Write-Verbose "Path to the module: [$Path]" -Verbose

Describe 'WoW' {
Context 'Module' {
It 'The module should be available' {
Get-Module -Name 'WoW' -ListAvailable | Should -Not -BeNullOrEmpty
Write-Verbose (Get-Module -Name 'WoW' -ListAvailable | Out-String) -Verbose
}
It 'The module should be importable' {
{ Import-Module -Name 'WoW' -Verbose -RequiredVersion 999.0.0 -Force } | Should -Not -Throw
}
}
}

0 comments on commit bd24b05

Please sign in to comment.