remove engines 24 reuqirement from toolkit and fix test

This commit is contained in:
Salman Muin Kayser Chishti
2025-09-04 12:41:43 +01:00
parent f82db4c00b
commit 86207b5042
7 changed files with 50 additions and 25 deletions
-3
View File
@@ -25,9 +25,6 @@
"@types/node": "^24.1.0",
"@types/semver": "^6.0.0",
"typescript": "^5.2.2"
},
"engines": {
"node": ">=24.0.0"
}
},
"node_modules/@actions/core": {
-3
View File
@@ -3,9 +3,6 @@
"version": "4.0.5",
"preview": true,
"description": "Actions cache lib",
"engines": {
"node": ">=24.0.0"
},
"keywords": [
"github",
"actions",
-3
View File
@@ -14,9 +14,6 @@
},
"devDependencies": {
"@types/node": "^24.1.0"
},
"engines": {
"node": ">=24.0.0"
}
},
"node_modules/@actions/exec": {
-3
View File
@@ -2,9 +2,6 @@
"name": "@actions/core",
"version": "1.11.1",
"description": "Actions core lib",
"engines": {
"node": ">=24.0.0"
},
"keywords": [
"github",
"actions",
+4 -3
View File
@@ -643,9 +643,10 @@ describe('rmRF', () => {
})
).toBe('test file content')
if (os.platform() === 'win32') {
expect(await fs.readlink(symlinkLevel2Directory)).toBe(
`${symlinkDirectory}\\`
)
// Node.js 24 changed behavior - fs.readlink no longer includes trailing backslash
// Accept both formats for compatibility
const linkPath = await fs.readlink(symlinkLevel2Directory)
expect(linkPath.replace(/\\+$/, '')).toBe(symlinkDirectory.replace(/\\+$/, ''))
} else {
expect(await fs.readlink(symlinkLevel2Directory)).toBe(symlinkDirectory)
}