fix(ci): wrap optional feature scripts in file presence checks for independent PR branches
This commit is contained in:
+21
-11
@@ -49,21 +49,31 @@ jobs:
|
|||||||
- name: Verify Mermaid import script
|
- name: Verify Mermaid import script
|
||||||
run: python scripts/verify-mermaid-import.py
|
run: python scripts/verify-mermaid-import.py
|
||||||
|
|
||||||
- name: Verify onboarding CLI script
|
- name: Verify onboarding CLI script (if present)
|
||||||
run: python scripts/verify-onboarding.py
|
|
||||||
|
|
||||||
- name: Install Playwright & Chromium
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
python -m pip install playwright
|
if [ -f scripts/verify-onboarding.py ]; then
|
||||||
if [ "${{ runner.os }}" = "Linux" ]; then
|
python scripts/verify-onboarding.py
|
||||||
python -m playwright install --with-deps chromium
|
|
||||||
else
|
|
||||||
python -m playwright install chromium
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Verify render layout validator self-test
|
- name: Install Playwright & Chromium (if linter present)
|
||||||
run: python scripts/lint-render.py --self-test
|
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
|
- name: Verify generated icon assets
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user