From 54c189ec05d52541ee663c57c4d51665eac29565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Wed, 20 Jul 2022 13:38:15 +0200 Subject: [PATCH] [Browser tests] Added a possibility to skip Slack notification when tests pass (#109) --- .github/workflows/browser-tests.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/browser-tests.yml b/.github/workflows/browser-tests.yml index 41f6704..782a4a3 100644 --- a/.github/workflows/browser-tests.yml +++ b/.github/workflows/browser-tests.yml @@ -1,6 +1,12 @@ name: Browser tests on: - workflow_dispatch: ~ + workflow_dispatch: + inputs: + send-success-notification: + description: 'Send a notification when the tests pass' + required: false + type: boolean + default: true push: branches: - master @@ -18,6 +24,7 @@ jobs: test-setup-phase-1: "--profile=regression --suite=setup-commerce --tags=~@part2 --mode=standard" test-setup-phase-2: "--profile=regression --suite=setup-commerce --tags=@part2 --mode=standard" setup: "doc/docker/base-dev.yml:doc/docker/db-postgresql.yml:doc/docker/varnish.yml:doc/docker/redis.yml:doc/docker/selenium.yml" + send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} job-count: 3 multirepository: true timeout: 120 @@ -36,6 +43,7 @@ jobs: test-setup-phase-1: "--profile=regression --suite=setup-commerce --tags=~@part2 --mode=standard" test-setup-phase-2: "--profile=regression --suite=setup-commerce --tags=@part2 --mode=standard" setup: "doc/docker/base-dev.yml:doc/docker/selenium.yml" + send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} job-count: 3 multirepository: true php-image: "ezsystems/php:7.3-v2-node14" @@ -55,6 +63,7 @@ jobs: test-setup-phase-1: "--profile=regression --suite=setup-commerce --tags=~@part2 --mode=standard" test-setup-phase-2: "--profile=regression --suite=setup-commerce --tags=@part2 --mode=standard" setup: "doc/docker/base-dev.yml:doc/docker/selenium.yml" + send-success-notification: ${{ github.event.inputs.send-success-notification != 'false' }} job-count: 3 multirepository: true php-image: "ezsystems/php:8.1-v2-node16"