Skip to content

Commit cba191b

Browse files
authored
Update deps (#482)
Fixes #469 Fixes #452
1 parent 1d46f79 commit cba191b

File tree

8 files changed

+791
-1793
lines changed

8 files changed

+791
-1793
lines changed

.eslintrc.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ module.exports = {
2424
'plugin:@typescript-eslint/recommended',
2525
'plugin:prettier/recommended',
2626
],
27-
ignorePatterns: ['**/dist/*'],
27+
28+
rules: {
29+
'@typescript-eslint/no-explicit-any': 'off',
30+
},
2831
};

dist/main/index.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 268 additions & 1310 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"main": "dist/index.js",
66
"scripts": {
77
"build": "rm -rf dist/ && ncc build -m src/main.ts -o dist/main",
8-
"lint": "eslint src/ tests/ --ext .ts,.tsx",
9-
"format": "eslint src/ tests/ --ext .ts,.tsx --fix",
10-
"test": "mocha -r ts-node/register -t 150s 'tests/unit/*.test.ts' --exit",
11-
"e2e-tests": "mocha -r ts-node/register -t 150s 'tests/e2e.test.ts' --exit"
8+
"lint": "eslint . --ext .ts,.tsx",
9+
"format": "eslint . --ext .ts,.tsx --fix",
10+
"test": "node --require ts-node/register --test-reporter spec --test tests/unit/main.test.ts tests/unit/output-parser.test.ts",
11+
"e2e-tests": "node --require ts-node/register --test-reporter spec --test tests/e2e.test.ts"
1212
},
1313
"repository": {
1414
"type": "git",
@@ -32,28 +32,22 @@
3232
"@actions/core": "^1.10.1",
3333
"@actions/exec": "^1.1.1",
3434
"@actions/tool-cache": "^2.0.1",
35-
"@google-github-actions/actions-utils": "^0.4.9",
35+
"@google-github-actions/actions-utils": "^0.6.0",
3636
"@google-github-actions/setup-cloud-sdk": "^1.1.3"
3737
},
3838
"devDependencies": {
39-
"@types/chai": "^4.3.10",
4039
"@types/js-yaml": "^4.0.9",
41-
"@types/mocha": "^10.0.4",
42-
"@types/node": "^20.9.0",
43-
"@types/sinon": "^17.0.1",
44-
"@typescript-eslint/eslint-plugin": "^6.10.0",
45-
"@typescript-eslint/parser": "^6.10.0",
40+
"@types/node": "^20.11.5",
41+
"@typescript-eslint/eslint-plugin": "^6.19.0",
42+
"@typescript-eslint/parser": "^6.19.0",
4643
"@vercel/ncc": "^0.38.1",
47-
"chai": "^4.3.10",
48-
"eslint": "^8.53.0",
49-
"eslint-config-prettier": "^9.0.0",
50-
"eslint-plugin-prettier": "^5.0.1",
51-
"googleapis": "^128.0.0",
52-
"mocha": "^10.2.0",
53-
"prettier": "^3.0.3",
54-
"sinon": "^17.0.1",
55-
"ts-node": "^10.9.1",
56-
"typescript": "^5.2.2",
44+
"eslint": "^8.56.0",
45+
"eslint-config-prettier": "^9.1.0",
46+
"eslint-plugin-prettier": "^5.1.3",
47+
"googleapis": "^131.0.0",
48+
"prettier": "^3.2.4",
49+
"ts-node": "^10.9.2",
50+
"typescript": "^5.3.3",
5751
"yaml": "^2.3.4"
5852
}
5953
}

src/main.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ import { parseDeployResponse, parseUpdateTrafficResponse } from './output-parser
5454
// eslint-disable-next-line @typescript-eslint/no-var-requires
5555
const { version: appVersion } = require('../package.json');
5656

57+
// isDebug returns true if runner debugging or step debugging is enabled.
58+
const isDebug =
59+
parseBoolean(process.env.ACTIONS_RUNNER_DEBUG) || parseBoolean(process.env.ACTIONS_STEP_DEBUG);
60+
5761
/**
5862
* DeployCloudRunOutputs are the common GitHub action outputs created by this action
5963
*/
@@ -246,7 +250,7 @@ export async function run(): Promise<void> {
246250
}
247251

248252
const toolCommand = getToolCommand();
249-
const options = { silent: true, ignoreReturnCode: true };
253+
const options = { silent: !isDebug, ignoreReturnCode: true };
250254
const commandString = `${toolCommand} ${cmd.join(' ')}`;
251255
logInfo(`Running: ${commandString}`);
252256

0 commit comments

Comments
 (0)