fix: CI workflows — remove legacy-peer-deps, add npm scripts #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build & Test | |
| on: | |
| push: | |
| branches: | |
| - 'feature/**' | |
| - 'release/**' | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| - name: Install Dependencies | |
| run: | | |
| npm install | |
| npm ls openclaw 2>/dev/null || echo "openclaw peer dep check done" | |
| - name: TypeScript Check | |
| run: npx tsc --noEmit | |
| - name: Unit Tests | |
| run: npx vitest --config vitest.config.ts run |