Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Commit

Permalink
Update smoketests.yml - change e2e skip term (#7194)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
markodonnell-deriv authored Feb 29, 2024
1 parent 56c9ca7 commit 9b89b34
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/smoketests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9b89b34

Please sign in to comment.