Skip to content

Commit

Permalink
ci: only run Chromatic on PRs ready for review (#2602)
Browse files Browse the repository at this point in the history
  • Loading branch information
unekinn committed Oct 10, 2024
1 parent 75f222a commit d44c288
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/visual-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,28 @@ name: Visual tests
on:
workflow_dispatch:
pull_request:
branches: [main, next]
types:
# Ensure workflow is run when PR is ready for review
- ready_for_review
# Also enable the default trigger types, for instances when
# the PR is not opened as a draft first
- opened
- reopened
- synchronize

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:
Expand Down

0 comments on commit d44c288

Please sign in to comment.