ci: add build verification workflow and npm scripts #1
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 --legacy-peer-deps || npm install | |
| - name: TypeScript Check | |
| run: npx tsc --noEmit | |
| - name: Unit Tests | |
| run: npx vitest --config vitest.config.ts run |