mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
a9c41ce8ff
Add timeout-minutes to plugin-skills-check workflow, update oxfmt config, and add lefthook entries for fixture validation.
56 lines
1.5 KiB
YAML
56 lines
1.5 KiB
YAML
name: plugin-skills-check
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "packages/*/skills/**"
|
|
- "skills/runtime/**"
|
|
- "skills/react-core/**"
|
|
- "skills/a2ui-renderer/**"
|
|
- "scripts/sync-plugin-skills.ts"
|
|
- "scripts/__tests__/sync-plugin-skills.test.ts"
|
|
- ".claude-plugin/**"
|
|
- ".github/workflows/plugin-skills-check.yml"
|
|
pull_request:
|
|
paths:
|
|
- "packages/*/skills/**"
|
|
- "skills/runtime/**"
|
|
- "skills/react-core/**"
|
|
- "skills/a2ui-renderer/**"
|
|
- "scripts/sync-plugin-skills.ts"
|
|
- "scripts/__tests__/sync-plugin-skills.test.ts"
|
|
- ".claude-plugin/**"
|
|
- ".github/workflows/plugin-skills-check.yml"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
|
|
|
|
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
|
|
with:
|
|
node-version: 20
|
|
cache: pnpm
|
|
|
|
- run: pnpm install --frozen-lockfile
|
|
|
|
- name: Run sync script unit tests
|
|
run: pnpm exec vitest run scripts/__tests__/sync-plugin-skills.test.ts
|
|
|
|
- name: Check plugin skill mirror is in sync
|
|
run: pnpm check:plugin-skills
|