Compare commits

...

28 Commits

Author SHA1 Message Date
gowridurgad
4c561dc48e Update build-node-packages.yml 2024-06-28 16:15:31 +05:30
gowridurgad
b1128b6a7d Update Node.Tests.ps1 2024-06-28 15:52:11 +05:30
gowridurgad
4e9fd7825b Update build-node-packages.yml 2024-06-28 15:50:50 +05:30
github-actions[bot]
ec09b8ed02 Update versions-manifest (#177)
Co-authored-by: Service account <no-reply@microsoft.com>
2024-06-23 23:47:07 -05:00
github-actions[bot]
22b86c61f6 Update versions-manifest (#175)
Co-authored-by: Service account <no-reply@microsoft.com>
2024-06-20 08:23:31 -05:00
github-actions[bot]
ee011d651d Update versions-manifest (#174)
Co-authored-by: Service account <no-reply@microsoft.com>
2024-05-28 22:35:36 -05:00
github-actions[bot]
f33462c8a2 Update versions-manifest (#173)
Co-authored-by: Service account <no-reply@microsoft.com>
2024-05-21 22:50:42 -05:00
github-actions[bot]
b8355a0fcc Update versions-manifest (#172)
Co-authored-by: Service account <no-reply@microsoft.com>
2024-05-15 23:15:04 -05:00
github-actions[bot]
d2561554de Update versions-manifest (#171)
Co-authored-by: Service account <no-reply@microsoft.com>
2024-05-09 21:55:32 -05:00
github-actions[bot]
ab329f0180 Update versions-manifest (#170)
Co-authored-by: Service account <no-reply@microsoft.com>
2024-05-08 08:06:17 -05:00
github-actions[bot]
cb84d2280a Update versions-manifest (#169)
Co-authored-by: Service account <no-reply@microsoft.com>
2024-05-02 22:54:05 -05:00
github-actions[bot]
a26a00efbb Update versions-manifest (#168)
Co-authored-by: Service account <no-reply@microsoft.com>
2024-04-29 09:03:53 -05:00
github-actions[bot]
386b5d6f78 Update versions-manifest (#167)
Co-authored-by: Service account <no-reply@microsoft.com>
2024-04-11 23:33:00 -05:00
github-actions[bot]
fb3241c6f2 Update versions-manifest (#166)
Co-authored-by: Service account <no-reply@microsoft.com>
2024-04-04 07:57:21 -05:00
github-actions[bot]
c88b3f72e2 Update versions-manifest (#165)
Co-authored-by: Service account <no-reply@microsoft.com>
2024-03-28 23:21:42 -05:00
github-actions[bot]
6c82900b55 Update versions-manifest (#164)
Co-authored-by: Service account <no-reply@microsoft.com>
2024-02-14 22:16:19 -06:00
github-actions[bot]
de463ffcdb Update versions-manifest (#163)
Co-authored-by: Service account <no-reply@microsoft.com>
2024-01-16 22:53:32 -06:00
github-actions[bot]
d51fc26ff7 Update versions-manifest (#161)
Co-authored-by: Service account <no-reply@microsoft.com>
2023-11-30 10:29:00 +01:00
github-actions[bot]
fee25d72a2 Update versions-manifest (#160)
Co-authored-by: Service account <no-reply@microsoft.com>
2023-11-23 17:15:39 +01:00
github-actions[bot]
bb598e8c31 Update versions-manifest (#159)
Co-authored-by: Service account <no-reply@microsoft.com>
2023-11-08 13:55:10 +01:00
Dmitry Shibanov
a798c8ed46 add arch to installer script (#158) 2023-11-08 09:43:29 +01:00
github-actions[bot]
9d10c5b01a Update versions-manifest (#157)
Co-authored-by: Service account <no-reply@microsoft.com>
2023-11-07 14:49:26 +01:00
github-actions[bot]
a4a2f9a437 Update versions-manifest (#156)
Co-authored-by: Service account <no-reply@microsoft.com>
2023-10-25 14:25:01 +02:00
github-actions[bot]
3d5333b8c1 Update versions-manifest (#155)
Co-authored-by: Service account <no-reply@microsoft.com>
2023-10-16 10:32:12 +02:00
github-actions[bot]
897b0a01fc Update versions-manifest (#154)
Co-authored-by: Service account <no-reply@microsoft.com>
2023-10-11 17:06:12 +02:00
github-actions[bot]
605dcd4078 Update versions-manifest (#153)
Co-authored-by: Service account <no-reply@microsoft.com>
2023-09-29 18:38:56 +02:00
Dmitry Shibanov
705d5d4eb2 update submodule (#152) 2023-09-22 15:03:46 +02:00
Marko Zivic
aa0c3a667a Merge pull request #151 from actions/deprecation-policy
Add Support Notification Policy
2023-09-20 14:01:07 +02:00
6 changed files with 967 additions and 11 deletions

View File

@@ -28,4 +28,4 @@ jobs:
tool-name: "node"
tool-version: ${{ inputs.VERSION || '18.12.0' }}
publish-release: ${{ inputs.PUBLISH_RELEASES || false }}
secrets: inherit
secrets: inherit

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)"

Submodule helpers updated: b964a9871b...6fbb1f0f20

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

View File

@@ -35,14 +35,24 @@ Describe "Node.js" {
}
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"
if ($env:RUNNER_TYPE -eq "GitHub") {
# 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"
} else {
# 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
}
}
It "Run simple code" {
"node ./simple-test.js" | Should -ReturnZeroExitCode
}
}
}

File diff suppressed because it is too large Load Diff