@@ -34361,6 +34361,7 @@ async function run() {
34361
34361
const parallel = core.getInput('parallel', { required: false }) === 'true';
34362
34362
const failFast = core.getInput('fail-fast', { required: false }) === 'true';
34363
34363
const flags = core.getInput('flags', { required: false });
34364
+ const inspectFlags = core.getInput('inspect-flags', { required: false });
34364
34365
const cloudRunLocally = core.getInput('cloud-run-locally', { required: false }) === 'true';
34365
34366
const onlyVerifyScripts = core.getInput('only-verify-scripts', { required: false }) === 'true';
34366
34367
const shouldCommentCloudTestRunUrlOnPR = core.getInput('cloud-comment-on-pr', { required: false }) === 'true';
@@ -34372,7 +34373,7 @@ async function run() {
34372
34373
if (testPaths.length === 0) {
34373
34374
throw new Error('No test files found');
34374
34375
}
34375
- const verifiedTestPaths = await (0, k6helper_1.validateTestPaths)(testPaths);
34376
+ const verifiedTestPaths = await (0, k6helper_1.validateTestPaths)(testPaths, inspectFlags ? inspectFlags.split(' ') : [] );
34376
34377
if (verifiedTestPaths.length === 0) {
34377
34378
throw new Error('No valid test files found');
34378
34379
}
@@ -34721,7 +34722,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
34721
34722
exports.cleanScriptPath = exports.validateTestPaths = void 0;
34722
34723
// Common helper functions used in the action
34723
34724
const child_process_1 = __nccwpck_require__(2081);
34724
- async function validateTestPaths(testPaths) {
34725
+ async function validateTestPaths(testPaths, flags ) {
34725
34726
/**
34726
34727
* Validates the test paths by running `k6 inspect --execution-requirements` on each test file.
34727
34728
* A test path is considered valid if the command returns an exit code of 0.
@@ -34734,7 +34735,7 @@ async function validateTestPaths(testPaths) {
34734
34735
throw new Error('No test files found');
34735
34736
}
34736
34737
console.log(`🔍 Validating test run files.`);
34737
- const validK6TestPaths = [], command = "k6", defaultArgs = ["inspect", "--execution-requirements"];
34738
+ const validK6TestPaths = [], command = "k6", defaultArgs = ["inspect", "--execution-requirements", ...flags ];
34738
34739
const allPromises = [];
34739
34740
testPaths.forEach(async (testPath) => {
34740
34741
const args = [...defaultArgs, testPath];
0 commit comments