Run cypress tests on push to release and master (#3697)
Co-authored-by: Arpit Mohan <arpit@appsmith.com>
This commit is contained in:
parent
1a9a410c5e
commit
e975104866
11
.github/workflows/client-test.yml
vendored
11
.github/workflows/client-test.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user