From 2a70efbb17d0dc52f259dd207fc05bd13f05dc4b Mon Sep 17 00:00:00 2001 From: Talisson Costa Date: Tue, 7 Apr 2026 12:16:58 -0300 Subject: [PATCH] =?UTF-8?q?fix(ci):=20improve=20Chromatic=20workflow=20?= =?UTF-8?q?=E2=80=94=20auto-accept=20on=20main,=20path=20filter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Run on push to main to establish baselines (was PR-only) - autoAcceptChanges on main — no manual review needed for source of truth - Narrow path filter for main push (components, styles, storybook only) - Broad path filter for PRs (frontend/**) to catch indirect regressions - Fix if condition to handle both push and pull_request events Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/frontend-chromatic.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/frontend-chromatic.yml b/.github/workflows/frontend-chromatic.yml index d68c1fd68dce..950389078301 100644 --- a/.github/workflows/frontend-chromatic.yml +++ b/.github/workflows/frontend-chromatic.yml @@ -1,6 +1,15 @@ name: Frontend Chromatic on: + push: + branches: [main] + paths: + - frontend/web/components/** + - frontend/web/styles/** + - frontend/common/theme/** + - frontend/documentation/** + - frontend/.storybook/** + - .github/workflows/frontend-chromatic.yml pull_request: types: [opened, synchronize, reopened, ready_for_review] paths: @@ -14,7 +23,7 @@ jobs: chromatic: name: Chromatic runs-on: ubuntu-latest - if: github.event.pull_request.draft == false + if: github.event_name == 'push' || github.event.pull_request.draft == false defaults: run: @@ -43,3 +52,4 @@ jobs: exitZeroOnChanges: true exitOnceUploaded: true onlyChanged: true + autoAcceptChanges: main