📦 deps(thirdparty): update snapshots
This commit is contained in:
+10
-3
@@ -5,6 +5,8 @@ on:
|
||||
paths:
|
||||
- "src/ui-ux-pro-max/**"
|
||||
- "cli/assets/**"
|
||||
- ".claude/skills/ui-ux-pro-max/data/**"
|
||||
- ".claude/skills/ui-ux-pro-max/scripts/**"
|
||||
- "cli/scripts/sync-assets.mjs"
|
||||
- ".github/workflows/check-asset-sync.yml"
|
||||
push:
|
||||
@@ -12,10 +14,12 @@ on:
|
||||
paths:
|
||||
- "src/ui-ux-pro-max/**"
|
||||
- "cli/assets/**"
|
||||
- ".claude/skills/ui-ux-pro-max/data/**"
|
||||
- ".claude/skills/ui-ux-pro-max/scripts/**"
|
||||
|
||||
jobs:
|
||||
check-assets:
|
||||
name: cli/assets must match src/ui-ux-pro-max
|
||||
name: cli/assets and .claude/skills/ui-ux-pro-max must match src/ui-ux-pro-max
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -24,6 +28,9 @@ jobs:
|
||||
node-version: 20
|
||||
# check:assets runs `node scripts/sync-assets.mjs --check`, which uses only
|
||||
# node builtins (no npm install needed) and normalizes CRLF/LF before
|
||||
# hashing, so it compares content rather than line endings.
|
||||
- name: Check CLI assets are in sync with source of truth
|
||||
# hashing, so it compares content rather than line endings. It checks
|
||||
# both cli/assets/ AND .claude/skills/ui-ux-pro-max/{data,scripts} --
|
||||
# the latter is what Claude Code actually loads when this repo is
|
||||
# installed as a plugin, and previously had no sync check at all.
|
||||
- name: Check assets are in sync with source of truth
|
||||
run: npm --prefix cli run check:assets
|
||||
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
name: Tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- '.claude/skills/**'
|
||||
- 'cli/assets/skills/**'
|
||||
- '.github/workflows/tests.yml'
|
||||
push:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
pytest:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v6
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Install pytest
|
||||
run: pip install pytest
|
||||
|
||||
- name: Run skill regression tests
|
||||
run: python3 -m pytest .claude/skills -v
|
||||
|
||||
- name: Install Playwright deps
|
||||
working-directory: cli
|
||||
run: |
|
||||
npm ci
|
||||
npx playwright install --with-deps chromium
|
||||
|
||||
- name: Run preview e2e smoke tests
|
||||
working-directory: cli
|
||||
run: npx playwright test
|
||||
|
||||
- name: Upload Playwright report
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: playwright-report
|
||||
path: cli/playwright-report/
|
||||
retention-days: 7
|
||||
Reference in New Issue
Block a user