Changeup: consilidate code, drop cache, change download

This changes up way too much:
- Moving most (all) of the code to main.ts instead of the numerous
  files
- Dropping the caching functionality, since it should be optional
- now we will only download the android sdk tools if they are not
  already present, including if ANDROID_SDK_ROOT is already set
This commit is contained in:
Dave Olsthoorn
2020-08-26 17:51:32 +02:00
parent 57977119c1
commit 24b7e80ade
11 changed files with 71 additions and 370 deletions

View File

@@ -5,10 +5,10 @@
"description": "setup android action",
"main": "lib/main.js",
"scripts": {
"build": "ncc build src/main.ts --out dist/main --minify && ncc build src/post.ts --out dist/post --minify",
"build": "ncc build src/main.ts --out dist/ --minify",
"format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts",
"lint": "eslint src/**/*.ts",
"lint": "eslint src/*.ts",
"test": "jest",
"all": "npm run format && npm run lint && npm run build && npm test"
},
@@ -27,9 +27,7 @@
"dependencies": {
"@actions/cache": "^1.0.2",
"@actions/core": "^1.2.0",
"@actions/tool-cache": "^1.6.0",
"axios": "^0.19.2",
"xml-js": "^1.6.11"
"@actions/tool-cache": "^1.6.0"
},
"devDependencies": {
"@types/jest": "^26.0.10",