From 9b89b34b438ae808ab074ae7582e6b6833d29991 Mon Sep 17 00:00:00 2001 From: markodonnell-deriv <144238191+markodonnell-deriv@users.noreply.github.com> Date: Thu, 29 Feb 2024 11:21:28 +0000 Subject: [PATCH] Update smoketests.yml - change e2e skip term (#7194) * Update smoketests.yml - change e2e skip term If the term 'skipsm' is specified in the branch name then skip the e2e tests (used to be 'quill'). This is because the dev knows they are making radical change which will need the tests to be modified at a later date. * Update smoketests.yml - Modified to use DRAFT param Skip smoket test if the PR is in Draft mode. --- .github/workflows/smoketests.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/smoketests.yml b/.github/workflows/smoketests.yml index 54837b2321d..2cbef283107 100644 --- a/.github/workflows/smoketests.yml +++ b/.github/workflows/smoketests.yml @@ -40,6 +40,7 @@ jobs: echo "preview_url=$(cat ./pr/PREVIEW_URL)" >> $GITHUB_OUTPUT echo "branch_name=$(cat ./pr/BRANCHNAME)" >> $GITHUB_OUTPUT echo "user_name=$(cat ./pr/USERNAME)" >> $GITHUB_OUTPUT + echo "draft=$(cat ./pr/DRAFT)" >> $GITHUB_OUTPUT - name: Checkout external repository with Cypress tests uses: actions/checkout@v4 @@ -48,7 +49,7 @@ jobs: - name: Cypress run # Uses the official Cypress GitHub action https://github.com/cypress-io/github-action - if: "!contains(steps.pr_information.outputs.branch_name, 'quill')" + if: (!steps.pr_information.outputs.draft) uses: cypress-io/github-action@v6 with: # Records to Cypress Cloud @@ -71,7 +72,7 @@ jobs: - name: Set comments message id: set_msg - if: always() && !contains(steps.pr_information.outputs.branch_name, 'quill') + if: always() && (!steps.pr_information.outputs.draft) run: | # Using shell script to conditionally set the message if [[ "${{ job.status }}" == "success" ]]; then @@ -81,7 +82,7 @@ jobs: fi - name: Leave comment - if: always() && !contains(steps.pr_information.outputs.branch_name, 'quill') + if: always() && (!steps.pr_information.outputs.draft) uses: marocchino/sticky-pull-request-comment@v2 with: header: Smoke tests status update