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 |
32
.github/workflows/build-tool-packages.yml
vendored
32
.github/workflows/build-tool-packages.yml
vendored
@@ -147,7 +147,7 @@ jobs:
|
||||
|
||||
- name: Setup Go ${{ inputs.tool-version }}
|
||||
if: inputs.tool-name == 'go'
|
||||
uses: actions/setup-go@v6
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: ${{ inputs.tool-version }}
|
||||
|
||||
@@ -161,7 +161,6 @@ 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")) {
|
||||
@@ -170,17 +169,32 @@ 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
|
||||
@@ -228,7 +242,7 @@ jobs:
|
||||
}
|
||||
|
||||
- name: Upload release assets
|
||||
uses: actions/github-script@v8
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
@@ -252,7 +266,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Trigger "Create Pull Request" workflow
|
||||
uses: actions/github-script@v8
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
|
||||
Reference in New Issue
Block a user