Skip to content

Commit 13aaa56

Browse files
committed
Enhance action.yml and codebase: add 'debug' input for verbose output, update version to 1.3.11, and ensure compatibility in parameter handling.
1 parent 24cb4b2 commit 13aaa56

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ inputs:
103103
skip-chrome-onboarding:
104104
description: '[Android only] Skip Chrome browser onboarding screens when running tests'
105105
required: false
106+
debug:
107+
description: 'Enable debug mode for more verbose output'
108+
required: false
106109

107110
outputs:
108111
DEVICE_CLOUD_CONSOLE_URL:

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "dcd-github-action",
33
"description": "run maestro tests on devicecloud.dev",
44
"author": "devicecloud.dev",
5-
"version": "1.3.10",
5+
"version": "1.3.11",
66
"main": "src/index.ts",
77
"license": "MIT",
88
"engines": {
@@ -26,4 +26,4 @@
2626
"typescript": "^5.1.6"
2727
},
2828
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
29-
}
29+
}

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ const run = async (): Promise<void> => {
110110
x86Arch,
111111
runnerType,
112112
skipChromeOnboarding,
113+
debug,
113114
moropoV1ApiKey,
114115
} = await getParameters();
115116

@@ -143,6 +144,7 @@ const run = async (): Promise<void> => {
143144
'runner-type': runnerType,
144145
'json-file': jsonFile,
145146
'skip-chrome-onboarding': skipChromeOnboarding,
147+
debug,
146148
'moropo-v1-api-key': moropoV1ApiKey,
147149
};
148150

src/methods/params.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export type Params = {
3232
runnerType?: string;
3333
jsonFile?: boolean;
3434
skipChromeOnboarding?: boolean;
35+
debug?: boolean;
3536
moropoV1ApiKey?: string;
3637
};
3738

@@ -181,6 +182,7 @@ export async function getParameters(): Promise<Params> {
181182
const jsonFile = core.getInput('json-file', { required: false }) === 'true';
182183
const skipChromeOnboarding =
183184
core.getInput('skip-chrome-onboarding', { required: false }) === 'true';
185+
const debug = core.getInput('debug', { required: false }) === 'true';
184186
const moropoV1ApiKey = core.getInput('moropo-v1-api-key', {
185187
required: false,
186188
});
@@ -228,6 +230,7 @@ export async function getParameters(): Promise<Params> {
228230
runnerType,
229231
jsonFile,
230232
skipChromeOnboarding,
233+
debug,
231234
moropoV1ApiKey,
232235
};
233236
}

0 commit comments

Comments
 (0)