mirror of
https://github.com/actions/toolkit.git
synced 2026-08-17 00:00:22 +02:00
remove engines 24 reuqirement from toolkit and fix test
This commit is contained in:
-3
@@ -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": {
|
||||
|
||||
Vendored
-3
@@ -3,9 +3,6 @@
|
||||
"version": "4.0.5",
|
||||
"preview": true,
|
||||
"description": "Actions cache lib",
|
||||
"engines": {
|
||||
"node": ">=24.0.0"
|
||||
},
|
||||
"keywords": [
|
||||
"github",
|
||||
"actions",
|
||||
|
||||
Generated
-3
@@ -14,9 +14,6 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^24.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=24.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@actions/exec": {
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
"name": "@actions/core",
|
||||
"version": "1.11.1",
|
||||
"description": "Actions core lib",
|
||||
"engines": {
|
||||
"node": ">=24.0.0"
|
||||
},
|
||||
"keywords": [
|
||||
"github",
|
||||
"actions",
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user