diff --git a/src/jobs/smoke/report_smoke_failures.yml b/src/jobs/smoke/report_smoke_failures.yml new file mode 100644 index 00000000..1a6ea1ab --- /dev/null +++ b/src/jobs/smoke/report_smoke_failures.yml @@ -0,0 +1,28 @@ +executor: node-executor-node-20 + +parameters: + e2e-env-name: + type: string + default: "" + branch-or-commit: + type: string + default: "master" + description: "the branch or commit of the automated-testing repo to reference for source code" + channel: + type: string + default: "test_failures" + description: "the channel where test failures reports will be posted" + mention: + type: string + default: "" +steps: + - authenticate_npm + - run: + name: Report Test Failures + command: | + npx --package=@voiceflow/test-cli -- \ + testcli report \ + --environment << parameters.e2e-env-name >> \ + --smokeRef << parameters.branch-or-commit >> \ + --channel << parameters.channel >> \ + --mention '<< parameters.mention >>'