mirror of
https://github.com/Azure/setup-kubectl.git
synced 2025-12-14 06:01:16 +00:00
Introduce resolveKubectlVersion function that enables automatic selection of the latest patch version when provided with major.minor version input (e.g., '1.27' resolves to 'v1.27.15') Test Coverage: - Major.minor version expansion to latest available patch - Full version passthrough behavior (returns unchanged) - Single matching version selection logic - Comprehensive unit tests for kubectl version resolution scenarios
36 lines
875 B
JSON
36 lines
875 B
JSON
{
|
|
"name": "setup-kubectl-action",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"main": "lib/index.js",
|
|
"scripts": {
|
|
"build": "npm i ncc && npx ncc build src/index.ts -o lib",
|
|
"test": "jest",
|
|
"test-coverage": "jest --coverage",
|
|
"format": "prettier --write .",
|
|
"format-check": "prettier --check ."
|
|
},
|
|
"keywords": [
|
|
"actions",
|
|
"node",
|
|
"setup"
|
|
],
|
|
"author": "GitHub",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@actions/core": "^1.11.1",
|
|
"@actions/exec": "^1.0.0",
|
|
"@actions/tool-cache": "^2.0.2",
|
|
"@octokit/rest": "^22.0.0",
|
|
"ncc": "^0.3.6"
|
|
},
|
|
"devDependencies": {
|
|
"@types/jest": "^30.0.0",
|
|
"@types/node": "^24.0.4",
|
|
"@vercel/ncc": "^0.38.3",
|
|
"jest": "^30.0.0",
|
|
"prettier": "3.5.3",
|
|
"ts-jest": "^29.4.0",
|
|
"typescript": "5.8.3"
|
|
}
|
|
}
|