Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Jan 22, 2024
1 parent 1d46f79 commit 7b0e81e
Show file tree
Hide file tree
Showing 8 changed files with 839 additions and 1,175 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ module.exports = {
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
ignorePatterns: ['**/dist/*'],

rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
};
10 changes: 5 additions & 5 deletions dist/main/index.js

Large diffs are not rendered by default.

1,009 changes: 318 additions & 691 deletions package-lock.json

Large diffs are not rendered by default.

36 changes: 15 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"main": "dist/index.js",
"scripts": {
"build": "rm -rf dist/ && ncc build -m src/main.ts -o dist/main",
"lint": "eslint src/ tests/ --ext .ts,.tsx",
"format": "eslint src/ tests/ --ext .ts,.tsx --fix",
"test": "mocha -r ts-node/register -t 150s 'tests/unit/*.test.ts' --exit",
"e2e-tests": "mocha -r ts-node/register -t 150s 'tests/e2e.test.ts' --exit"
"lint": "eslint . --ext .ts,.tsx",
"format": "eslint . --ext .ts,.tsx --fix",
"test": "node --require ts-node/register --test-reporter spec --test tests/unit/main.test.ts tests/unit/output-parser.test.ts",
"e2e-tests": "node --require ts-node/register --test-reporter spec --test tests/e2e.test.ts"
},
"repository": {
"type": "git",
Expand All @@ -32,28 +32,22 @@
"@actions/core": "^1.10.1",
"@actions/exec": "^1.1.1",
"@actions/tool-cache": "^2.0.1",
"@google-github-actions/actions-utils": "^0.4.9",
"@google-github-actions/actions-utils": "^0.6.0",
"@google-github-actions/setup-cloud-sdk": "^1.1.3"
},
"devDependencies": {
"@types/chai": "^4.3.10",
"@types/js-yaml": "^4.0.9",
"@types/mocha": "^10.0.4",
"@types/node": "^20.9.0",
"@types/sinon": "^17.0.1",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"@types/node": "^20.11.5",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"@vercel/ncc": "^0.38.1",
"chai": "^4.3.10",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"googleapis": "^128.0.0",
"mocha": "^10.2.0",
"prettier": "^3.0.3",
"sinon": "^17.0.1",
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"googleapis": "^131.0.0",
"prettier": "^3.2.4",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"yaml": "^2.3.4"
}
}
6 changes: 5 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ import { parseDeployResponse, parseUpdateTrafficResponse } from './output-parser
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { version: appVersion } = require('../package.json');

// isDebug returns true if runner debugging or step debugging is enabled.
const isDebug =
parseBoolean(process.env.ACTIONS_RUNNER_DEBUG) || parseBoolean(process.env.ACTIONS_STEP_DEBUG);

/**
* DeployCloudRunOutputs are the common GitHub action outputs created by this action
*/
Expand Down Expand Up @@ -246,7 +250,7 @@ export async function run(): Promise<void> {
}

const toolCommand = getToolCommand();
const options = { silent: true, ignoreReturnCode: true };
const options = { silent: !isDebug, ignoreReturnCode: true };
const commandString = `${toolCommand} ${cmd.join(' ')}`;
logInfo(`Running: ${commandString}`);

Expand Down
Loading

0 comments on commit 7b0e81e

Please sign in to comment.