Skip to content

Commit

Permalink
Add in flag to let user to decide if insta-integration waits for comm…
Browse files Browse the repository at this point in the history
…and to finish or not
  • Loading branch information
pflooky committed Jul 15, 2024
1 parent 49c9d26 commit 3aa57a1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
5 changes: 3 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions schema/insta-integration-config-latest.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
"type": "string",
"description": "Bash command to run your application/job."
},
"commandWaitForFinish": {
"type": "boolean",
"description": "Whether to wait for the command to finish before running data generation/validation.",
"default": true
},
"env": {
"$ref": "#/$defs/EnvironmentVariables",
"description": "Environment variables for your application/job."
Expand Down
5 changes: 3 additions & 2 deletions src/insta-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -521,15 +521,16 @@ async function runTests(
configFileDirectory,
baseFolder,
i,
true
runConf.commandWaitForFinish
)
writeToFile(sharedFolder, `app-${i}-done`, 'done', true)
} else {
applicationProcess = await runApplication(
runConf,
configFileDirectory,
baseFolder,
i
i,
runConf.commandWaitForFinish
)
writeToFile(sharedFolder, `app-${i}-done`, 'done', true)
runDataCaterer(
Expand Down

0 comments on commit 3aa57a1

Please sign in to comment.