mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-10 11:41:23 +00:00
Compare commits
3 Commits
816a9a3331
...
replacemac
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e7aee39f18 | ||
|
|
673d91c21a | ||
|
|
d233269615 |
26
.github/workflows/build-tool-packages.yml
vendored
26
.github/workflows/build-tool-packages.yml
vendored
@@ -161,6 +161,7 @@ jobs:
|
|||||||
for ($i = 0; $i -lt 200; $i++) { Get-Random }
|
for ($i = 0; $i -lt 200; $i++) { Get-Random }
|
||||||
|
|
||||||
- name: Ensure Pester Installed
|
- name: Ensure Pester Installed
|
||||||
|
if: env.excludewinarm == 'true'
|
||||||
run: |
|
run: |
|
||||||
$module = Get-Module -ListAvailable -Name Pester
|
$module = Get-Module -ListAvailable -Name Pester
|
||||||
if (-not $module -or ($module.Version -lt [Version]"5.0.0")) {
|
if (-not $module -or ($module.Version -lt [Version]"5.0.0")) {
|
||||||
@@ -169,32 +170,17 @@ jobs:
|
|||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
if: env.excludewinarm == 'true'
|
if: env.excludewinarm == 'true'
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ inputs.tool-version }}
|
VERSION: ${{ inputs.tool-version }}
|
||||||
run: |
|
run: |
|
||||||
Import-Module Pester
|
Import-Module Pester
|
||||||
$toolName = (Get-Culture).TextInfo.ToTitleCase("${{ inputs.tool-name }}")
|
$toolName = (Get-Culture).TextInfo.ToTitleCase("${{ inputs.tool-name }}")
|
||||||
Invoke-Pester -Configuration @{
|
Invoke-Pester -Configuration @{
|
||||||
Run = @{ Path = "./$toolName.Tests.ps1" }
|
Run = @{ Path = "./$toolName.Tests.ps1" }
|
||||||
Should = @{ ErrorAction = 'Continue' }
|
Should = @{ ErrorAction = 'Continue' }
|
||||||
Output = @{ EnableExit = $true }
|
Output = @{ EnableExit = $true }
|
||||||
}
|
}
|
||||||
working-directory: ./tests
|
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:
|
publish_release:
|
||||||
name: Publish release
|
name: Publish release
|
||||||
|
|||||||
Reference in New Issue
Block a user