mirror of
https://github.com/actions/node-versions.git
synced 2025-03-15 21:57:10 +00:00
Compare commits
53 Commits
16.20.2-58
...
main
Author | SHA1 | Date | |
---|---|---|---|
![]() |
70176e8e7f | ||
![]() |
b8e2e0988f | ||
![]() |
6f7e07ce98 | ||
![]() |
759e7130a4 | ||
![]() |
708c79f819 | ||
![]() |
ff0573dc52 | ||
![]() |
f3742acb8e | ||
![]() |
b5d073fd75 | ||
![]() |
07972c08eb | ||
![]() |
1089754c37 | ||
![]() |
d0b553a9eb | ||
![]() |
09e0810728 | ||
![]() |
83c0f2d854 | ||
![]() |
1dda8b0c7d | ||
![]() |
a09329c1fa | ||
![]() |
75581b6027 | ||
![]() |
bb9d406a6c | ||
![]() |
4638058663 | ||
![]() |
c749aff12a | ||
![]() |
aacaf58011 | ||
![]() |
5b159cbd4a | ||
![]() |
c8cf9cb4b5 | ||
![]() |
3a7a3835dd | ||
![]() |
ec09b8ed02 | ||
![]() |
22b86c61f6 | ||
![]() |
ee011d651d | ||
![]() |
f33462c8a2 | ||
![]() |
b8355a0fcc | ||
![]() |
d2561554de | ||
![]() |
ab329f0180 | ||
![]() |
cb84d2280a | ||
![]() |
a26a00efbb | ||
![]() |
386b5d6f78 | ||
![]() |
fb3241c6f2 | ||
![]() |
c88b3f72e2 | ||
![]() |
6c82900b55 | ||
![]() |
de463ffcdb | ||
![]() |
d51fc26ff7 | ||
![]() |
fee25d72a2 | ||
![]() |
bb598e8c31 | ||
![]() |
a798c8ed46 | ||
![]() |
9d10c5b01a | ||
![]() |
a4a2f9a437 | ||
![]() |
3d5333b8c1 | ||
![]() |
897b0a01fc | ||
![]() |
605dcd4078 | ||
![]() |
705d5d4eb2 | ||
![]() |
aa0c3a667a | ||
![]() |
989324aed0 | ||
![]() |
59fe4e7639 | ||
![]() |
5bebf2b61c | ||
![]() |
015a819882 | ||
![]() |
bebc948c04 |
@ -11,5 +11,8 @@ Latest of LTS versions will be installed on the [runner-images](https://github.c
|
|||||||
## Adding new versions
|
## 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.
|
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
|
## Contribution
|
||||||
Contributions are welcome! See [Contributor's Guide](./CONTRIBUTING.md) for more details about contribution process and code structure
|
Contributions are welcome! See [Contributor's Guide](./CONTRIBUTING.md) for more details about contribution process and code structure
|
||||||
|
@ -54,7 +54,7 @@ class NixNodeBuilder : NodeBuilder {
|
|||||||
$installationTemplateLocation = Join-Path -Path $this.InstallationTemplatesLocation -ChildPath $this.InstallationTemplateName
|
$installationTemplateLocation = Join-Path -Path $this.InstallationTemplatesLocation -ChildPath $this.InstallationTemplateName
|
||||||
|
|
||||||
$installationTemplateContent = Get-Content -Path $installationTemplateLocation -Raw
|
$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
|
$installationTemplateContent | Out-File -FilePath $installationScriptLocation
|
||||||
|
|
||||||
Write-Debug "Done; Installation script location: $installationScriptLocation)"
|
Write-Debug "Done; Installation script location: $installationScriptLocation)"
|
||||||
|
2
helpers
2
helpers
@ -1 +1 @@
|
|||||||
Subproject commit b964a9871b5d9c7ae9b11f790745ce9d0aa7e7dd
|
Subproject commit 6fbb1f0f2098254142702dba05fe75cd8e77c4ae
|
@ -1,10 +1,11 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
NODE_VERSION={0}
|
NODE_VERSION={0}
|
||||||
|
ARCH={1}
|
||||||
|
|
||||||
NODE_TOOLCACHE_PATH=$AGENT_TOOLSDIRECTORY/node
|
NODE_TOOLCACHE_PATH=$AGENT_TOOLSDIRECTORY/node
|
||||||
NODE_TOOLCACHE_VERSION_PATH=$NODE_TOOLCACHE_PATH/$NODE_VERSION
|
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..."
|
echo "Check if Node.js hostedtoolcache folder exist..."
|
||||||
if [ ! -d $NODE_TOOLCACHE_PATH ]; then
|
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
|
rm $NODE_TOOLCACHE_VERSION_ARCH_PATH/setup.sh
|
||||||
|
|
||||||
echo "Create complete file"
|
echo "Create complete file"
|
||||||
touch $NODE_TOOLCACHE_VERSION_PATH/x64.complete
|
touch $NODE_TOOLCACHE_VERSION_PATH/$ARCH.complete
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
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
|
# GitHub Windows images don't have `HOME` variable
|
||||||
@ -14,7 +18,6 @@ BeforeAll {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Describe "Node.js" {
|
|
||||||
It "is available" {
|
It "is available" {
|
||||||
"node --version" | Should -ReturnZeroExitCode
|
"node --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
@ -35,12 +38,22 @@ Describe "Node.js" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
It "cached version is used without downloading" {
|
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
|
# Analyze output of previous steps to check if Node.js was consumed from cache or downloaded
|
||||||
$useNodeLogFile = Get-UseNodeLogs
|
$useNodeLogFile = Get-UseNodeLogs
|
||||||
$useNodeLogFile | Should -Exist
|
$useNodeLogFile | Should -Exist
|
||||||
$useNodeLogContent = Get-Content $useNodeLogFile -Raw
|
$useNodeLogContent = Get-Content $useNodeLogFile -Raw
|
||||||
$useNodeLogContent | Should -Match "Found in cache"
|
$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
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user