mirror of
https://github.com/nextlevelbuilder/ui-ux-pro-max-skill.git
synced 2026-08-14 08:49:05 +00:00
Resolve platform-root-relative script paths for local and global installs, with regression coverage across Claude, Codex, Copilot, and Kiro.
56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
name: Tests
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '.claude/skills/**'
|
|
- 'cli/assets/skills/**'
|
|
- 'cli/assets/templates/**'
|
|
- 'cli/src/**'
|
|
- 'cli/tests/**'
|
|
- 'src/ui-ux-pro-max/templates/**'
|
|
- '.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
|