mirror of
https://github.com/actions/node-versions.git
synced 2025-09-11 23:27:37 +08:00
Compare commits
34 Commits
update-ver
...
test-arm64
Author | SHA1 | Date | |
---|---|---|---|
|
ec27571eae | ||
|
bd9a2e8e82 | ||
|
c79c183aa1 | ||
|
f0dfcccfe7 | ||
|
8de3d72cb1 | ||
|
8ca96eb4cb | ||
|
2a1b448870 | ||
|
4a0b418a79 | ||
|
d4f90c669c | ||
|
603b5e4794 | ||
|
5c75f27e7e | ||
|
9b824cdd95 | ||
|
37c6c3a813 | ||
|
b635d778f3 | ||
|
57bef4861a | ||
|
5b20cd9fc1 | ||
|
afb778a6b3 | ||
|
dd8ef7901f | ||
|
f89b01ffb0 | ||
|
921e8d9f35 | ||
|
47252c228f | ||
|
36b2cbcda8 | ||
|
d920d43ef0 | ||
|
ad4d6a9a31 | ||
|
f8eaf50e03 | ||
|
49750423f1 | ||
|
8455456cfe | ||
|
2c843f30c3 | ||
|
05826df7a9 | ||
|
0b32a21a33 | ||
|
8e6ce03db5 | ||
|
d9d6de2703 | ||
|
4698451ff9 | ||
|
e9db515b8b |
2
.github/workflows/build-node-packages.yml
vendored
2
.github/workflows/build-node-packages.yml
vendored
@@ -23,7 +23,7 @@ on:
|
||||
jobs:
|
||||
node:
|
||||
name: Node
|
||||
uses: actions/versions-package-tools/.github/workflows/build-tool-packages.yml@main
|
||||
uses: actions/versions-package-tools/.github/workflows/build-tool-packages.yml@test-arm64
|
||||
with:
|
||||
tool-name: "node"
|
||||
tool-version: ${{ inputs.VERSION || '18.12.0' }}
|
||||
|
2
.github/workflows/get-node-versions.yml
vendored
2
.github/workflows/get-node-versions.yml
vendored
@@ -1,7 +1,7 @@
|
||||
name: Get Node versions
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 0,12 * * *'
|
||||
- cron: '0 3,15 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
|
@@ -4,36 +4,19 @@ Import-Module (Join-Path $PSScriptRoot "../helpers/pester-extensions.psm1")
|
||||
|
||||
Describe "Node.js" {
|
||||
|
||||
BeforeAll {
|
||||
BeforeAll {
|
||||
function Get-UseNodeLogs {
|
||||
|
||||
# GitHub Windows images don't have `HOME` variable
|
||||
$homeDir = $env:HOME ?? $env:HOMEDRIVE
|
||||
|
||||
$possiblePaths = @(
|
||||
Join-Path -Path $homeDir -ChildPath "actions-runner/cached/_diag/pages"
|
||||
Join-Path -Path $homeDir -ChildPath "runners/*/_diag/pages"
|
||||
)
|
||||
|
||||
$logsFolderPath = $possiblePaths | Where-Object { Test-Path $_ } | Select-Object -First 1
|
||||
$resolvedPath = Resolve-Path -Path $logsFolderPath -ErrorAction SilentlyContinue
|
||||
|
||||
if ($resolvedPath -and -not [string]::IsNullOrEmpty($resolvedPath.Path) -and (Test-Path $resolvedPath.Path)) {
|
||||
$useNodeLogFile = Get-ChildItem -Path $resolvedPath | Where-Object {
|
||||
$logsFolderPath = Join-Path -Path $homeDir -ChildPath "runners/*/_diag/pages" -Resolve
|
||||
$useNodeLogFile = Get-ChildItem -Path $logsFolderPath | Where-Object {
|
||||
$logContent = Get-Content $_.Fullname -Raw
|
||||
return $logContent -match "setup-node@v"
|
||||
} | Select-Object -First 1
|
||||
|
||||
# Return the file name if a match is found
|
||||
if ($useNodeLogFile) {
|
||||
return $useNodeLogFile.FullName
|
||||
} else {
|
||||
Write-Error "No matching log file found in the specified path: $($resolvedPath.Path)"
|
||||
}
|
||||
} else {
|
||||
Write-Error "The provided logs folder path is null, empty, or does not exist: $logsFolderPath"
|
||||
}
|
||||
}
|
||||
return $useNodeLogFile.Fullname
|
||||
}
|
||||
}
|
||||
|
||||
It "is available" {
|
||||
"node --version" | Should -ReturnZeroExitCode
|
||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user