mirror of
https://github.com/android-actions/setup-android.git
synced 2026-06-30 16:37:58 +00:00
Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3404b45d4c | |||
| 161f0b2707 | |||
| ae8a1c8d80 | |||
| e458de9c46 | |||
| da1ab05e31 | |||
| 910b2809b6 | |||
| 7fc55be752 | |||
| 36160f0297 | |||
| 46ed96d180 | |||
| 57a1f875c4 | |||
| cee829806b | |||
| a83cba80ae | |||
| 53fbf5011f | |||
| ef1614e11f | |||
| 7506bcd002 | |||
| 0bdb2caf82 |
@@ -18,7 +18,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup node 12
|
- name: Setup node 12
|
||||||
uses: actions/setup-node@v2.1.4
|
uses: actions/setup-node@v2.1.5
|
||||||
with:
|
with:
|
||||||
node-version: '12'
|
node-version: '12'
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup node 12
|
- name: Setup node 12
|
||||||
uses: actions/setup-node@v2.1.4
|
uses: actions/setup-node@v2.1.5
|
||||||
with:
|
with:
|
||||||
node-version: '12'
|
node-version: '12'
|
||||||
|
|
||||||
@@ -46,7 +46,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup node 12
|
- name: Setup node 12
|
||||||
uses: actions/setup-node@v2.1.4
|
uses: actions/setup-node@v2.1.5
|
||||||
with:
|
with:
|
||||||
node-version: '12'
|
node-version: '12'
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup node 12
|
- name: Setup node 12
|
||||||
uses: actions/setup-node@v2.1.4
|
uses: actions/setup-node@v2.1.5
|
||||||
with:
|
with:
|
||||||
node-version: '12'
|
node-version: '12'
|
||||||
|
|
||||||
@@ -82,7 +82,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup node 12
|
- name: Setup node 12
|
||||||
uses: actions/setup-node@v2.1.4
|
uses: actions/setup-node@v2.1.5
|
||||||
with:
|
with:
|
||||||
node-version: '12'
|
node-version: '12'
|
||||||
|
|
||||||
|
|||||||
Vendored
+8366
-1
File diff suppressed because one or more lines are too long
Generated
+12061
-203
File diff suppressed because it is too large
Load Diff
+9
-9
@@ -5,7 +5,7 @@
|
|||||||
"description": "setup android action",
|
"description": "setup android action",
|
||||||
"main": "lib/main.js",
|
"main": "lib/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "ncc build src/main.ts --out dist/ --minify",
|
"build": "ncc build src/main.ts --out dist/",
|
||||||
"format": "prettier --write **/*.ts",
|
"format": "prettier --write **/*.ts",
|
||||||
"format-check": "prettier --check **/*.ts",
|
"format-check": "prettier --check **/*.ts",
|
||||||
"lint": "eslint src/*.ts",
|
"lint": "eslint src/*.ts",
|
||||||
@@ -31,20 +31,20 @@
|
|||||||
"fs-extra": "^9.1.0"
|
"fs-extra": "^9.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@types/fs-extra": "^9.0.8",
|
||||||
"@types/jest": "^26.0.20",
|
"@types/jest": "^26.0.20",
|
||||||
"@types/node": "^14.14.31",
|
"@types/node": "^14.14.31",
|
||||||
"@typescript-eslint/eslint-plugin": "^4.15.1",
|
"@typescript-eslint/eslint-plugin": "^4.16.1",
|
||||||
"@typescript-eslint/parser": "^4.15.1",
|
"@typescript-eslint/parser": "^4.16.1",
|
||||||
"@types/fs-extra": "^9.0.6",
|
"@vercel/ncc": "^0.27.0",
|
||||||
"@zeit/ncc": "^0.22.3",
|
"eslint": "^7.21.0",
|
||||||
"eslint": "^7.20.0",
|
|
||||||
"eslint-plugin-github": "^4.1.1",
|
"eslint-plugin-github": "^4.1.1",
|
||||||
"eslint-plugin-jest": "^24.1.5",
|
"eslint-plugin-jest": "^24.1.5",
|
||||||
"jest": "^26.6.3",
|
"jest": "^26.6.3",
|
||||||
"jest-circus": "^26.6.3",
|
"jest-circus": "^26.6.3",
|
||||||
"js-yaml": "^3.14.1",
|
"js-yaml": "^4.0.0",
|
||||||
"prettier": "^2.2.1",
|
"prettier": "^2.2.1",
|
||||||
"ts-jest": "^26.5.1",
|
"ts-jest": "^26.5.2",
|
||||||
"typescript": "^4.1.5"
|
"typescript": "^4.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+7
-1
@@ -117,13 +117,19 @@ async function installSdkManager(): Promise<string> {
|
|||||||
CMDLINE_TOOLS_VERSION
|
CMDLINE_TOOLS_VERSION
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Create parent directory
|
||||||
fs.mkdirSync(path.dirname(desiredLocation), {recursive: true})
|
fs.mkdirSync(path.dirname(desiredLocation), {recursive: true})
|
||||||
// @TODO: use io.mv instead of fs-extra once following issue is resolved:
|
|
||||||
|
// Make sure we don't have leftover target directory (happens sometimes...)
|
||||||
|
if (fs.existsSync(desiredLocation)) fse.removeSync(desiredLocation)
|
||||||
|
|
||||||
|
// @TODO: use io.mv instead of fs-extra.moveSync once following issue is resolved:
|
||||||
// https://github.com/actions/toolkit/issues/706
|
// https://github.com/actions/toolkit/issues/706
|
||||||
fse.moveSync(
|
fse.moveSync(
|
||||||
path.join(cmdlineToolsExtractedLocation, 'cmdline-tools'),
|
path.join(cmdlineToolsExtractedLocation, 'cmdline-tools'),
|
||||||
desiredLocation
|
desiredLocation
|
||||||
)
|
)
|
||||||
|
fse.removeSync(cmdlineToolsExtractedLocation)
|
||||||
|
|
||||||
sdkManager.exePath = getSdkManagerPath(CMDLINE_TOOLS_VERSION)
|
sdkManager.exePath = getSdkManagerPath(CMDLINE_TOOLS_VERSION)
|
||||||
sdkManager.isCorrectVersion = true
|
sdkManager.isCorrectVersion = true
|
||||||
|
|||||||
Reference in New Issue
Block a user