Compare commits

..

3 Commits

Author SHA1 Message Date
Haritha
e7aee39f18 Add conditional check for Pester installation 2025-11-05 12:39:58 -06:00
Haritha
673d91c21a Aligning indentation
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-11-05 12:37:27 -06:00
Haritha
d233269615 Clean up build-tool-packages.yml by removing comments
Removed commented-out test run section from workflow.
2025-11-05 12:18:53 -06:00

View File

@@ -161,6 +161,7 @@ jobs:
for ($i = 0; $i -lt 200; $i++) { Get-Random }
- name: Ensure Pester Installed
if: env.excludewinarm == 'true'
run: |
$module = Get-Module -ListAvailable -Name Pester
if (-not $module -or ($module.Version -lt [Version]"5.0.0")) {
@@ -169,32 +170,17 @@ jobs:
- name: Run tests
if: env.excludewinarm == 'true'
env:
env:
VERSION: ${{ inputs.tool-version }}
run: |
Import-Module Pester
$toolName = (Get-Culture).TextInfo.ToTitleCase("${{ inputs.tool-name }}")
Invoke-Pester -Configuration @{
Run = @{ Path = "./$toolName.Tests.ps1" }
Should = @{ ErrorAction = 'Continue' }
Output = @{ EnableExit = $true }
}
Run = @{ Path = "./$toolName.Tests.ps1" }
Should = @{ ErrorAction = 'Continue' }
Output = @{ EnableExit = $true }
}
working-directory: ./tests
# - name: Run tests
# if: env.excludewinarm == 'true'
# env:
# VERSION: ${{ inputs.tool-version }}
# run: |
# Install-Module Pester -Force -Scope CurrentUser -SkipPublisherCheck
# Import-Module Pester
# $toolName = (Get-Culture).TextInfo.ToTitleCase("${{ inputs.tool-name }}")
# Invoke-Pester -Configuration @{
# Run = @{ Path = "./$toolName.Tests.ps1" }
# Should = @{ ErrorAction = 'Continue' }
# Output = @{ EnableExit = $true }
# }
# working-directory: ./tests
publish_release:
name: Publish release