From e46196a007a5618e19cd320b83f323365b5c34e9 Mon Sep 17 00:00:00 2001 From: Praveen Bishnoi Date: Wed, 12 Aug 2026 13:10:30 +0530 Subject: [PATCH] fix(ci): wrap optional feature scripts in file presence checks for independent PR branches --- .github/workflows/ci.yml | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f7df632..86f31db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,21 +49,31 @@ jobs: - name: Verify Mermaid import script run: python scripts/verify-mermaid-import.py - - name: Verify onboarding CLI script - run: python scripts/verify-onboarding.py - - - name: Install Playwright & Chromium + - name: Verify onboarding CLI script (if present) shell: bash run: | - python -m pip install playwright - if [ "${{ runner.os }}" = "Linux" ]; then - python -m playwright install --with-deps chromium - else - python -m playwright install chromium + if [ -f scripts/verify-onboarding.py ]; then + python scripts/verify-onboarding.py fi - - name: Verify render layout validator self-test - run: python scripts/lint-render.py --self-test + - name: Install Playwright & Chromium (if linter present) + shell: bash + run: | + if [ -f scripts/lint-render.py ]; then + python -m pip install playwright + if [ "${{ runner.os }}" = "Linux" ]; then + python -m playwright install --with-deps chromium + else + python -m playwright install chromium + fi + fi + + - name: Verify render layout validator self-test (if present) + shell: bash + run: | + if [ -f scripts/lint-render.py ]; then + python scripts/lint-render.py --self-test + fi - name: Verify generated icon assets shell: bash