mirror of
https://github.com/actions/node-versions.git
synced 2025-09-12 16:33:23 +08:00
Compare commits
40 Commits
20.13.1-90
...
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 | ||
|
ec09b8ed02 | ||
|
22b86c61f6 | ||
|
ee011d651d | ||
|
f33462c8a2 | ||
|
b8355a0fcc | ||
|
d2561554de |
4
.github/workflows/build-node-packages.yml
vendored
4
.github/workflows/build-node-packages.yml
vendored
@@ -23,9 +23,9 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
node:
|
node:
|
||||||
name: 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:
|
with:
|
||||||
tool-name: "node"
|
tool-name: "node"
|
||||||
tool-version: ${{ inputs.VERSION || '18.12.0' }}
|
tool-version: ${{ inputs.VERSION || '18.12.0' }}
|
||||||
publish-release: ${{ inputs.PUBLISH_RELEASES || false }}
|
publish-release: ${{ inputs.PUBLISH_RELEASES || false }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
@@ -1,12 +1,16 @@
|
|||||||
Import-Module (Join-Path $PSScriptRoot "../helpers/pester-extensions.psm1")
|
Import-Module (Join-Path $PSScriptRoot "../helpers/pester-extensions.psm1")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Describe "Node.js" {
|
||||||
|
|
||||||
BeforeAll {
|
BeforeAll {
|
||||||
function Get-UseNodeLogs {
|
function Get-UseNodeLogs {
|
||||||
# GitHub Windows images don't have `HOME` variable
|
|
||||||
$homeDir = $env:HOME ?? $env:HOMEDRIVE
|
# GitHub Windows images don't have `HOME` variable
|
||||||
$logsFolderPath = Join-Path -Path $homeDir -ChildPath "runners/*/_diag/pages" -Resolve
|
$homeDir = $env:HOME ?? $env:HOMEDRIVE
|
||||||
|
$logsFolderPath = Join-Path -Path $homeDir -ChildPath "runners/*/_diag/pages" -Resolve
|
||||||
$useNodeLogFile = Get-ChildItem -Path $logsFolderPath | Where-Object {
|
$useNodeLogFile = Get-ChildItem -Path $logsFolderPath | Where-Object {
|
||||||
$logContent = Get-Content $_.Fullname -Raw
|
$logContent = Get-Content $_.Fullname -Raw
|
||||||
return $logContent -match "setup-node@v"
|
return $logContent -match "setup-node@v"
|
||||||
} | Select-Object -First 1
|
} | Select-Object -First 1
|
||||||
@@ -14,7 +18,6 @@ BeforeAll {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "Node.js" {
|
|
||||||
It "is available" {
|
It "is available" {
|
||||||
"node --version" | Should -ReturnZeroExitCode
|
"node --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
@@ -34,15 +37,25 @@ Describe "Node.js" {
|
|||||||
$nodePath.startsWith($expectedPath) | Should -BeTrue -Because "'$nodePath' is not started with '$expectedPath'"
|
$nodePath.startsWith($expectedPath) | Should -BeTrue -Because "'$nodePath' is not started with '$expectedPath'"
|
||||||
}
|
}
|
||||||
|
|
||||||
It "cached version is used without downloading" {
|
It "cached version is used without downloading" {
|
||||||
# Analyze output of previous steps to check if Node.js was consumed from cache or downloaded
|
|
||||||
$useNodeLogFile = Get-UseNodeLogs
|
if ($env:RUNNER_TYPE -eq "self-hosted") {
|
||||||
$useNodeLogFile | Should -Exist
|
# Get the installed version of Node.js
|
||||||
$useNodeLogContent = Get-Content $useNodeLogFile -Raw
|
$nodeVersion = Invoke-Expression "node --version"
|
||||||
$useNodeLogContent | Should -Match "Found in cache"
|
# Check if Node.js is installed
|
||||||
|
$nodeVersion | Should -Not -BeNullOrEmpty
|
||||||
|
# Check if the installed version of Node.js is the expected version
|
||||||
|
$nodeVersion | Should -Match $env:VERSION
|
||||||
|
}else {
|
||||||
|
# Analyze output of previous steps to check if Node.js was consumed from cache or downloaded
|
||||||
|
$useNodeLogFile = Get-UseNodeLogs
|
||||||
|
$useNodeLogFile | Should -Exist
|
||||||
|
$useNodeLogContent = Get-Content $useNodeLogFile -Raw
|
||||||
|
$useNodeLogContent | Should -Match "Found in cache"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Run simple code" {
|
It "Run simple code" {
|
||||||
"node ./simple-test.js" | Should -ReturnZeroExitCode
|
"node ./simple-test.js" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,90 @@
|
|||||||
[
|
[
|
||||||
|
{
|
||||||
|
"version": "22.3.0",
|
||||||
|
"stable": true,
|
||||||
|
"release_url": "https://github.com/actions/node-versions/releases/tag/22.3.0-9569309553",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "node-22.3.0-darwin-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/22.3.0-9569309553/node-22.3.0-darwin-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-22.3.0-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/22.3.0-9569309553/node-22.3.0-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-22.3.0-linux-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/22.3.0-9569309553/node-22.3.0-linux-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-22.3.0-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/22.3.0-9569309553/node-22.3.0-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-22.3.0-win32-arm64.7z",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/22.3.0-9569309553/node-22.3.0-win32-arm64.7z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-22.3.0-win32-x64.7z",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/22.3.0-9569309553/node-22.3.0-win32-x64.7z"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "22.2.0",
|
||||||
|
"stable": true,
|
||||||
|
"release_url": "https://github.com/actions/node-versions/releases/tag/22.2.0-9105861751",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "node-22.2.0-darwin-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/22.2.0-9105861751/node-22.2.0-darwin-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-22.2.0-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/22.2.0-9105861751/node-22.2.0-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-22.2.0-linux-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/22.2.0-9105861751/node-22.2.0-linux-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-22.2.0-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/22.2.0-9105861751/node-22.2.0-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-22.2.0-win32-arm64.7z",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/22.2.0-9105861751/node-22.2.0-win32-arm64.7z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-22.2.0-win32-x64.7z",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/22.2.0-9105861751/node-22.2.0-win32-x64.7z"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "22.1.0",
|
"version": "22.1.0",
|
||||||
"stable": true,
|
"stable": true,
|
||||||
@@ -85,6 +171,138 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"version": "20.15.0",
|
||||||
|
"stable": true,
|
||||||
|
"lts": "Iron",
|
||||||
|
"release_url": "https://github.com/actions/node-versions/releases/tag/20.15.0-9607683765",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "node-20.15.0-darwin-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.15.0-9607683765/node-20.15.0-darwin-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.15.0-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.15.0-9607683765/node-20.15.0-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.15.0-linux-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.15.0-9607683765/node-20.15.0-linux-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.15.0-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.15.0-9607683765/node-20.15.0-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.15.0-win32-arm64.7z",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.15.0-9607683765/node-20.15.0-win32-arm64.7z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.15.0-win32-x64.7z",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.15.0-9607683765/node-20.15.0-win32-x64.7z"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "20.14.0",
|
||||||
|
"stable": true,
|
||||||
|
"lts": "Iron",
|
||||||
|
"release_url": "https://github.com/actions/node-versions/releases/tag/20.14.0-9279690001",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "node-20.14.0-darwin-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.14.0-9279690001/node-20.14.0-darwin-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.14.0-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.14.0-9279690001/node-20.14.0-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.14.0-linux-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.14.0-9279690001/node-20.14.0-linux-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.14.0-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.14.0-9279690001/node-20.14.0-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.14.0-win32-arm64.7z",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.14.0-9279690001/node-20.14.0-win32-arm64.7z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.14.0-win32-x64.7z",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.14.0-9279690001/node-20.14.0-win32-x64.7z"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"version": "20.13.1",
|
||||||
|
"stable": true,
|
||||||
|
"lts": "Iron",
|
||||||
|
"release_url": "https://github.com/actions/node-versions/releases/tag/20.13.1-9021092103",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "node-20.13.1-darwin-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.13.1-9021092103/node-20.13.1-darwin-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.13.1-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.13.1-9021092103/node-20.13.1-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.13.1-linux-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.13.1-9021092103/node-20.13.1-linux-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.13.1-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.13.1-9021092103/node-20.13.1-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.13.1-win32-arm64.7z",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.13.1-9021092103/node-20.13.1-win32-arm64.7z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-20.13.1-win32-x64.7z",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/20.13.1-9021092103/node-20.13.1-win32-x64.7z"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "20.13.0",
|
"version": "20.13.0",
|
||||||
"stable": true,
|
"stable": true,
|
||||||
@@ -727,6 +945,44 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"version": "18.20.3",
|
||||||
|
"stable": true,
|
||||||
|
"lts": "Hydrogen",
|
||||||
|
"release_url": "https://github.com/actions/node-versions/releases/tag/18.20.3-9178518591",
|
||||||
|
"files": [
|
||||||
|
{
|
||||||
|
"filename": "node-18.20.3-darwin-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/18.20.3-9178518591/node-18.20.3-darwin-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-18.20.3-darwin-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "darwin",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/18.20.3-9178518591/node-18.20.3-darwin-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-18.20.3-linux-arm64.tar.gz",
|
||||||
|
"arch": "arm64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/18.20.3-9178518591/node-18.20.3-linux-arm64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-18.20.3-linux-x64.tar.gz",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "linux",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/18.20.3-9178518591/node-18.20.3-linux-x64.tar.gz"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "node-18.20.3-win32-x64.7z",
|
||||||
|
"arch": "x64",
|
||||||
|
"platform": "win32",
|
||||||
|
"download_url": "https://github.com/actions/node-versions/releases/download/18.20.3-9178518591/node-18.20.3-win32-x64.7z"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"version": "18.20.2",
|
"version": "18.20.2",
|
||||||
"stable": true,
|
"stable": true,
|
||||||
|
Reference in New Issue
Block a user