From e975104866fe2e0de82def4ab1559c8e5e661a84 Mon Sep 17 00:00:00 2001 From: Hetu Nandu Date: Thu, 25 Mar 2021 13:08:45 +0530 Subject: [PATCH] Run cypress tests on push to release and master (#3697) Co-authored-by: Arpit Mohan --- .github/workflows/client-test.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/client-test.yml b/.github/workflows/client-test.yml index a3d6282675..0c99a20d11 100644 --- a/.github/workflows/client-test.yml +++ b/.github/workflows/client-test.yml @@ -11,6 +11,10 @@ on: - "app/client/**" - "!app/client/cypress/manual_TestSuite/**" + # trigger for pushes to release and master + push: + branches: [ release, master ] + # Change the working directory for all the jobs in this workflow defaults: run: @@ -18,7 +22,12 @@ defaults: jobs: build: - if: github.event.review.state == 'approved' + # If the build has been triggered manually via workflow_dispatch or via a push to protected branches + # then we don't check for the PR approved state + if: | + github.event_name == 'workflow_dispatch' || + github.event_name == 'push' || + (github.event_name == 'pull_request_review' && github.event.review.state == 'approved') runs-on: ubuntu-latest defaults: run: