diff --git a/.github/workflows/visual-tests.yml b/.github/workflows/visual-tests.yml index 55738796b8..d2942a8102 100644 --- a/.github/workflows/visual-tests.yml +++ b/.github/workflows/visual-tests.yml @@ -2,19 +2,21 @@ name: Visual tests on: workflow_dispatch: pull_request: + branches: [main, next] + types: + - ready_for_review paths: - .github/workflows/visual-tests.yml - 'packages/**' - 'apps/storybook/**' push: - branches: - - main - - next + branches: [main, next] jobs: checks: name: Build & run visual/interaction tests runs-on: ubuntu-latest + if: ${{ !github.event.pull_request.draft }} steps: - uses: actions/checkout@v4 with: