Run cypress tests on push to release and master (#3697)

Co-authored-by: Arpit Mohan <arpit@appsmith.com>
This commit is contained in:
Hetu Nandu 2021-03-25 13:08:45 +05:30 committed by GitHub
parent 1a9a410c5e
commit e975104866
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: