Compare commits

..
Author SHA1 Message Date
HarithaandGitHub 2a5a93de98 Modify path retrieval logic 2026-01-13 16:32:45 -06:00
703395f1ea Update comment to reflect the correct directory
Co-authored-by: Copilot <[email protected]>
2026-01-13 15:23:46 -06:00
HarithaandGitHub 0badf909f6 Update log retrieval logic in Node.Tests.ps1
Refactor Get-UseNodeLogs function to find logs in runner root directory instead of home directory.
2026-01-13 14:20:24 -06:00
4175843c81 Update versions-manifest (#231)
Co-authored-by: Service account <[email protected]>
2025-12-11 11:59:01 -06:00
HarithaandGitHub ff3fc4cc4e Add new path for ubuntu runner (#230) 2025-12-11 10:57:18 -06:00
5c7702bb19 Update versions-manifest (#229)
Co-authored-by: Service account <[email protected]>
2025-11-25 21:14:19 -06:00
318aa75a51 Update versions-manifest (#227)
Co-authored-by: Service account <[email protected]>
2025-11-11 21:47:48 -06:00
7cc031e877 Update versions-manifest (#226)
Co-authored-by: Service account <[email protected]>
2025-10-28 22:30:14 -05:00
b9b8a06ea4 Update versions-manifest (#225)
Co-authored-by: Service account <[email protected]>
2025-10-20 23:23:18 -05:00
64801c3590 Update versions-manifest (#224)
Co-authored-by: Service account <[email protected]>
2025-10-12 22:23:31 -05:00
a2eca09038 Update versions-manifest (#222)
Co-authored-by: Service account <[email protected]>
2025-09-25 22:25:58 -05:00
fcfdeb317e Update versions-manifest (#221)
Co-authored-by: Service account <[email protected]>
2025-09-24 22:41:02 -05:00
b32305dc94 Update versions-manifest (#220)
Co-authored-by: Service account <[email protected]>
2025-09-10 22:10:12 -05:00
018c97355d Update versions-manifest (#219)
Co-authored-by: Service account <[email protected]>
2025-09-03 23:26:34 -05:00
82b9d6eb7f Update versions-manifest (#218)
Co-authored-by: Service account <[email protected]>
2025-08-28 22:12:39 -05:00
6c1dcef7e3 Update versions-manifest (#217)
Co-authored-by: Service account <[email protected]>
2025-08-27 22:08:47 -05:00
414aa4b42d Update versions-manifest (#216)
Co-authored-by: Service account <[email protected]>
2025-08-14 22:50:37 -05:00
HarithaandGitHub 05932b3923 Change schedule (#215) 2025-08-05 13:35:12 -05:00
8bc7882285 Update versions-manifest (#214)
Co-authored-by: Service account <[email protected]>
2025-08-03 21:35:21 -05:00
447f233d8c Update versions-manifest (#213)
Co-authored-by: Service account <[email protected]>
2025-07-16 09:19:10 -05:00
48d06ac109 Update versions-manifest (#212)
Co-authored-by: Service account <[email protected]>
2025-07-10 22:35:01 -05:00
2f48f5f179 Add new logs path related to runner migration (#211)
* Update paths

* update logic

* Updated logic

* Update log

Co-authored-by: Copilot <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
2025-07-10 21:36:51 -05:00
7bff9a2a32 Update versions-manifest (#210)
Co-authored-by: Service account <[email protected]>
2025-06-25 09:05:54 -05:00
ef431e4d6b Update versions-manifest (#209)
Co-authored-by: Service account <[email protected]>
2025-06-23 22:51:26 -05:00
498365717c Update versions-manifest (#208)
Co-authored-by: Service account <[email protected]>
2025-06-09 23:32:28 -05:00
github-actions[bot]andGitHub 8c7740e607 Update versions-manifest (#207) 2025-05-25 23:33:53 -05:00
6fda0935f2 Update versions-manifest (#206)
Co-authored-by: Service account <[email protected]>
2025-05-15 09:15:18 -05:00
e25da9dc7c Update versions-manifest (#205)
Co-authored-by: Service account <[email protected]>
2025-05-12 07:36:30 -05:00
3de2515c74 Update versions-manifest (#204)
Co-authored-by: Service account <[email protected]>
2025-05-06 22:38:45 -05:00
89d81124fa Update versions-manifest (#203)
Co-authored-by: Service account <[email protected]>
2025-04-23 11:16:08 -05:00
c5d5eb32a4 Update versions-manifest (#202)
Co-authored-by: Service account <[email protected]>
2025-04-22 22:39:07 -05:00
48b638b2a7 Update versions-manifest (#201)
Co-authored-by: Service account <[email protected]>
2025-03-27 23:21:45 -05:00
70176e8e7f Update versions-manifest (#200)
Co-authored-by: Service account <[email protected]>
2025-03-13 22:09:00 -05:00
b8e2e0988f Update versions-manifest (#199)
Co-authored-by: Service account <[email protected]>
2025-02-20 22:07:32 -06:00
6f7e07ce98 Update versions-manifest (#198)
Co-authored-by: Service account <[email protected]>
2025-02-11 21:57:10 -06:00
759e7130a4 Update versions-manifest (#197)
Co-authored-by: Service account <[email protected]>
2025-02-10 21:43:38 -06:00
708c79f819 Update versions-manifest (#196)
Co-authored-by: Service account <[email protected]>
2025-01-22 10:26:28 -06:00
ff0573dc52 Update versions-manifest (#195)
Co-authored-by: Service account <[email protected]>
2025-01-09 12:59:15 -06:00
f3742acb8e Update versions-manifest (#194)
Co-authored-by: Service account <[email protected]>
2024-12-04 09:56:04 -06:00
b5d073fd75 Update versions-manifest (#193)
Co-authored-by: Service account <[email protected]>
2024-11-20 22:34:20 -06:00
07972c08eb Update versions-manifest (#192)
Co-authored-by: Service account <[email protected]>
2024-11-13 10:18:36 -06:00
1089754c37 Update versions-manifest (#191)
Co-authored-by: Service account <[email protected]>
2024-11-03 21:30:21 -06:00
d0b553a9eb Update versions-manifest (#190)
Co-authored-by: Service account <[email protected]>
2024-10-17 11:15:27 -05:00
09e0810728 Update versions-manifest (#189)
Co-authored-by: Service account <[email protected]>
2024-10-07 11:23:01 -05:00
83c0f2d854 Update versions-manifest (#188)
Co-authored-by: Service account <[email protected]>
2024-09-18 09:50:38 -05:00
1dda8b0c7d Update versions-manifest (#187)
Co-authored-by: Service account <[email protected]>
2024-09-04 07:22:46 -05:00
a09329c1fa Update versions-manifest (#186)
Co-authored-by: Service account <[email protected]>
2024-08-23 09:29:44 -05:00
75581b6027 Update versions-manifest (#185)
Co-authored-by: Service account <[email protected]>
2024-08-22 10:42:10 -05:00
bb9d406a6c Update versions-manifest (#184)
Co-authored-by: Service account <[email protected]>
2024-08-07 10:06:51 -05:00
4638058663 Update versions-manifest (#183)
Co-authored-by: Service account <[email protected]>
2024-07-25 08:35:31 -05:00
github-actions[bot]andGitHub c749aff12a Update versions-manifest (#182) 2024-07-22 05:17:51 -05:00
aacaf58011 Update versions-manifest (#181)
Co-authored-by: Service account <[email protected]>
2024-07-18 08:42:01 -05:00
5b159cbd4a Update versions-manifest (#180)
Co-authored-by: Service account <[email protected]>
2024-07-10 08:42:19 -05:00
c8cf9cb4b5 Implementing Runner-Specific Node.js Tests (#178)
* Update Node.Tests.ps1

* Update Node.Tests.ps1

* Update Node.Tests.ps1

---------

Co-authored-by: aparnajyothi-y <[email protected]>
2024-07-09 10:01:27 -05:00
3a7a3835dd Update versions-manifest (#179)
Co-authored-by: Service account <[email protected]>
2024-07-03 08:43:36 -05:00
ec09b8ed02 Update versions-manifest (#177)
Co-authored-by: Service account <[email protected]>
2024-06-23 23:47:07 -05:00
22b86c61f6 Update versions-manifest (#175)
Co-authored-by: Service account <[email protected]>
2024-06-20 08:23:31 -05:00
ee011d651d Update versions-manifest (#174)
Co-authored-by: Service account <[email protected]>
2024-05-28 22:35:36 -05:00
f33462c8a2 Update versions-manifest (#173)
Co-authored-by: Service account <[email protected]>
2024-05-21 22:50:42 -05:00
b8355a0fcc Update versions-manifest (#172)
Co-authored-by: Service account <[email protected]>
2024-05-15 23:15:04 -05:00
d2561554de Update versions-manifest (#171)
Co-authored-by: Service account <[email protected]>
2024-05-09 21:55:32 -05:00
ab329f0180 Update versions-manifest (#170)
Co-authored-by: Service account <[email protected]>
2024-05-08 08:06:17 -05:00
cb84d2280a Update versions-manifest (#169)
Co-authored-by: Service account <[email protected]>
2024-05-02 22:54:05 -05:00
a26a00efbb Update versions-manifest (#168)
Co-authored-by: Service account <[email protected]>
2024-04-29 09:03:53 -05:00
386b5d6f78 Update versions-manifest (#167)
Co-authored-by: Service account <[email protected]>
2024-04-11 23:33:00 -05:00
fb3241c6f2 Update versions-manifest (#166)
Co-authored-by: Service account <[email protected]>
2024-04-04 07:57:21 -05:00
c88b3f72e2 Update versions-manifest (#165)
Co-authored-by: Service account <[email protected]>
2024-03-28 23:21:42 -05:00
6c82900b55 Update versions-manifest (#164)
Co-authored-by: Service account <[email protected]>
2024-02-14 22:16:19 -06:00
de463ffcdb Update versions-manifest (#163)
Co-authored-by: Service account <[email protected]>
2024-01-16 22:53:32 -06:00
d51fc26ff7 Update versions-manifest (#161)
Co-authored-by: Service account <[email protected]>
2023-11-30 10:29:00 +01:00
fee25d72a2 Update versions-manifest (#160)
Co-authored-by: Service account <[email protected]>
2023-11-23 17:15:39 +01:00
bb598e8c31 Update versions-manifest (#159)
Co-authored-by: Service account <[email protected]>
2023-11-08 13:55:10 +01:00
Dmitry ShibanovandGitHub a798c8ed46 add arch to installer script (#158) 2023-11-08 09:43:29 +01:00
9d10c5b01a Update versions-manifest (#157)
Co-authored-by: Service account <[email protected]>
2023-11-07 14:49:26 +01:00
a4a2f9a437 Update versions-manifest (#156)
Co-authored-by: Service account <[email protected]>
2023-10-25 14:25:01 +02:00
3d5333b8c1 Update versions-manifest (#155)
Co-authored-by: Service account <[email protected]>
2023-10-16 10:32:12 +02:00
897b0a01fc Update versions-manifest (#154)
Co-authored-by: Service account <[email protected]>
2023-10-11 17:06:12 +02:00
605dcd4078 Update versions-manifest (#153)
Co-authored-by: Service account <[email protected]>
2023-09-29 18:38:56 +02:00
Dmitry ShibanovandGitHub 705d5d4eb2 update submodule (#152) 2023-09-22 15:03:46 +02:00
Marko ZivicandGitHub aa0c3a667a Merge pull request #151 from actions/deprecation-policy
Add Support Notification Policy
2023-09-20 14:01:07 +02:00
Dusan TrickovicandGitHub 989324aed0 Update README.md and Add Support Notification Policy 2023-09-20 12:46:02 +02:00
59fe4e7639 Update versions-manifest (#150)
Co-authored-by: Service account <[email protected]>
2023-09-19 13:13:15 +02:00
5bebf2b61c Update versions-manifest (#149)
Co-authored-by: Service account <[email protected]>
2023-09-11 10:18:55 +02:00
015a819882 Update versions-manifest (#148)
Co-authored-by: Service account <[email protected]>
2023-09-06 11:04:31 +02:00
bebc948c04 Update versions-manifest (#147)
Co-authored-by: Service account <[email protected]>
2023-08-10 13:14:45 +02:00
github-actions[bot]andGitHub 953fa628ab Update versions-manifest (#146) 2023-07-21 13:07:50 +02:00
7 changed files with 3831 additions and 26 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
name: Get Node versions
on:
schedule:
- cron: '0 3,15 * * *'
- cron: '0 0,12 * * *'
workflow_dispatch:
jobs:
@@ -10,4 +10,4 @@ jobs:
with:
tool-name: "Node"
image-url: "https://nodejs.org/static/images/logo-hexagon-card.png"
secrets: inherit
secrets: inherit
+3
View File
@@ -11,5 +11,8 @@ Latest of LTS versions will be installed on the [runner-images](https://github.c
## Adding new versions
We are trying to prepare packages for new versions of Node.js as soon as they are released. Please open an issue in [actions/runner-images](https://github.com/actions/runner-images) if any versions are missing.
## Support Notification Policy
Beginning **approximately six months prior** to the removal of a Node.js version from the [versions-manifest.json](https://github.com/actions/node-versions/blob/main/versions-manifest.json) file, a pinned issue will be created in the [setup-node](https://github.com/actions/setup-node) repository. This pinned issue will provide important details about the upcoming end of support, including the specific date, as well as any other notes, relevant updates or alternatives. We encourage users to regularly check pinned issues for updates on tool versions they are using for maximum transparency, security, performance and overall compatibility with their projects.
## Contribution
Contributions are welcome! See [Contributor's Guide](./CONTRIBUTING.md) for more details about contribution process and code structure
+1 -1
View File
@@ -54,7 +54,7 @@ class NixNodeBuilder : NodeBuilder {
$installationTemplateLocation = Join-Path -Path $this.InstallationTemplatesLocation -ChildPath $this.InstallationTemplateName
$installationTemplateContent = Get-Content -Path $installationTemplateLocation -Raw
$installationTemplateContent = $installationTemplateContent -f $this.Version.ToString(3)
$installationTemplateContent = $installationTemplateContent -f $this.Version.ToString(3), $this.Architecture
$installationTemplateContent | Out-File -FilePath $installationScriptLocation
Write-Debug "Done; Installation script location: $installationScriptLocation)"
+1 -1
Submodule helpers updated: b964a9871b...6fbb1f0f20
+3 -2
View File
@@ -1,10 +1,11 @@
set -e
NODE_VERSION={0}
ARCH={1}
NODE_TOOLCACHE_PATH=$AGENT_TOOLSDIRECTORY/node
NODE_TOOLCACHE_VERSION_PATH=$NODE_TOOLCACHE_PATH/$NODE_VERSION
NODE_TOOLCACHE_VERSION_ARCH_PATH=$NODE_TOOLCACHE_VERSION_PATH/x64
NODE_TOOLCACHE_VERSION_ARCH_PATH=$NODE_TOOLCACHE_VERSION_PATH/$ARCH
echo "Check if Node.js hostedtoolcache folder exist..."
if [ ! -d $NODE_TOOLCACHE_PATH ]; then
@@ -22,4 +23,4 @@ cp -R ./* $NODE_TOOLCACHE_VERSION_ARCH_PATH
rm $NODE_TOOLCACHE_VERSION_ARCH_PATH/setup.sh
echo "Create complete file"
touch $NODE_TOOLCACHE_VERSION_PATH/x64.complete
touch $NODE_TOOLCACHE_VERSION_PATH/$ARCH.complete
+59 -20
View File
@@ -1,20 +1,49 @@
Import-Module (Join-Path $PSScriptRoot "../helpers/pester-extensions.psm1")
BeforeAll {
function Get-UseNodeLogs {
# GitHub Windows images don't have `HOME` variable
$homeDir = $env:HOME ?? $env:HOMEDRIVE
$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 $useNodeLogFile.Fullname
}
}
Describe "Node.js" {
BeforeAll {
function Get-UseNodeLogs {
$runnerProc = Get-Process -Name "Runner.Listener" -ErrorAction SilentlyContinue | Select-Object -First 1
#Write-Host "`$runnerProc: $($runnerProc | Out-String)"
if (-not $runnerProc -or -not $runnerProc.Path) {
Write-Error "Runner.Listener process not found."
return
}
# Go up two directories to get runner root
$runnerRoot = Split-Path (Split-Path $runnerProc.Path -Parent) -Parent
#Write-Host "`$runnerRoot: $runnerRoot"
# Recursively find all _diag/pages folders under the runner root directory
$possiblePaths = Get-ChildItem -Path $runnerRoot -Directory -Recurse -Depth 4 -ErrorAction SilentlyContinue |
Where-Object { $_.FullName -like "*_diag\pages" -or $_.FullName -like "*_diag/pages" }
Write-Host "LogsPaths:"
$possiblePaths | ForEach-Object { Write-Host $_.FullName }
$logsFolderPath = $possiblePaths | Where-Object { Test-Path $_ } | Select-Object -First 1
if ($logsFolderPath) {
$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 {
$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"
}
}
}
It "is available" {
"node --version" | Should -ReturnZeroExitCode
}
@@ -34,15 +63,25 @@ Describe "Node.js" {
$nodePath.startsWith($expectedPath) | Should -BeTrue -Because "'$nodePath' is not started with '$expectedPath'"
}
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
$useNodeLogFile | Should -Exist
$useNodeLogContent = Get-Content $useNodeLogFile -Raw
$useNodeLogContent | Should -Match "Found in cache"
}
It "cached version is used without downloading" {
if ($env:RUNNER_TYPE -eq "self-hosted") {
# Get the installed version of Node.js
$nodeVersion = Invoke-Expression "node --version"
# 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" {
"node ./simple-test.js" | Should -ReturnZeroExitCode
}
}
}
File diff suppressed because it is too large Load Diff