Skip to content

Commit

Permalink
ci: only run Chromatic on PRs ready for review
Browse files Browse the repository at this point in the history
  • Loading branch information
unekinn committed Oct 10, 2024
1 parent f9d651e commit 7b62a90
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/visual-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7b62a90

Please sign in to comment.