Skip to content

Commit

Permalink
Only run Cypress on non-draft PRs (#732)
Browse files Browse the repository at this point in the history
* Only run Cypress on non-draft PRs

* Add back the trigger for cypress job

* Fix build job in the same way
  • Loading branch information
estellecomment authored Oct 6, 2023
1 parent 89f1cc0 commit 303fafa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#Build the application
name: Build without E2E tests
on:
pull_request: {} # only on draft PRs, see "if:" below
pull_request:
types: [converted_to_draft]
push:
branches: [master]
workflow_dispatch: # for running action manually
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/cypress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
cypress:
name: Cypress
runs-on: macos-latest

# Only run on non-draft PRs. On draft PRs, we already have the Build job
if: github.event.pull_request.draft == false

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down

0 comments on commit 303fafa

Please sign in to comment.