mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-11 12:06:44 +00:00
Compare commits
4 Commits
main
...
816a9a3331
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
816a9a3331 | ||
|
|
6c48f687bd | ||
|
|
e60ec8ae98 | ||
|
|
db2ae0a36e |
33
.github/workflows/build-tool-packages.yml
vendored
33
.github/workflows/build-tool-packages.yml
vendored
@@ -76,7 +76,7 @@ jobs:
|
||||
- os: ubuntu-latest
|
||||
platform: linux
|
||||
architecture: x64
|
||||
- os: macos-13
|
||||
- os: macos-15-intel
|
||||
platform: darwin
|
||||
architecture: x64
|
||||
- os: windows-latest
|
||||
@@ -160,16 +160,41 @@ jobs:
|
||||
Write-Host "to determine if ${{ inputs.tool-name }} version was consumed from cache or if it was downloaded"
|
||||
for ($i = 0; $i -lt 200; $i++) { Get-Random }
|
||||
|
||||
- name: Ensure Pester Installed
|
||||
run: |
|
||||
$module = Get-Module -ListAvailable -Name Pester
|
||||
if (-not $module -or ($module.Version -lt [Version]"5.0.0")) {
|
||||
Install-Module Pester -Force -Scope CurrentUser -SkipPublisherCheck
|
||||
}
|
||||
|
||||
- name: Run tests
|
||||
if: env.excludewinarm == 'true'
|
||||
env:
|
||||
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 -Script ./$toolName.Tests.ps1 -EnableExit
|
||||
Invoke-Pester -Configuration @{
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user