mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-14 22:25:27 +00:00
Compare commits
3 Commits
e7aee39f18
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
67a07a15de | ||
|
|
071e6f2da9 | ||
|
|
5ac208ba2e |
23
.github/workflows/build-tool-packages.yml
vendored
23
.github/workflows/build-tool-packages.yml
vendored
@@ -76,7 +76,7 @@ jobs:
|
|||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
platform: linux
|
platform: linux
|
||||||
architecture: x64
|
architecture: x64
|
||||||
- os: macos-13
|
- os: macos-15-intel
|
||||||
platform: darwin
|
platform: darwin
|
||||||
architecture: x64
|
architecture: x64
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
@@ -147,7 +147,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup Go ${{ inputs.tool-version }}
|
- name: Setup Go ${{ inputs.tool-version }}
|
||||||
if: inputs.tool-name == 'go'
|
if: inputs.tool-name == 'go'
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v6
|
||||||
with:
|
with:
|
||||||
go-version: ${{ inputs.tool-version }}
|
go-version: ${{ inputs.tool-version }}
|
||||||
|
|
||||||
@@ -160,15 +160,26 @@ jobs:
|
|||||||
Write-Host "to determine if ${{ inputs.tool-name }} version was consumed from cache or if it was downloaded"
|
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 }
|
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")) {
|
||||||
|
Install-Module Pester -Force -Scope CurrentUser -SkipPublisherCheck
|
||||||
|
}
|
||||||
|
|
||||||
- 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: |
|
||||||
Install-Module Pester -Force -Scope CurrentUser -SkipPublisherCheck
|
|
||||||
Import-Module Pester
|
Import-Module Pester
|
||||||
$toolName = (Get-Culture).TextInfo.ToTitleCase("${{ inputs.tool-name }}")
|
$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
|
working-directory: ./tests
|
||||||
|
|
||||||
publish_release:
|
publish_release:
|
||||||
@@ -217,7 +228,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
|
|
||||||
- name: Upload release assets
|
- name: Upload release assets
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
@@ -241,7 +252,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Trigger "Create Pull Request" workflow
|
- name: Trigger "Create Pull Request" workflow
|
||||||
uses: actions/github-script@v7
|
uses: actions/github-script@v8
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
|
|||||||
Reference in New Issue
Block a user