chore: update for build, config, CLI and tests: #103
Workflow file for this run
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: Node.js CI/CD | |
| on: | |
| pull_request: | |
| branches: [ "*" ] | |
| workflow_dispatch: # Allow manual triggering | |
| jobs: | |
| setup: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Deno 2.4.3 | |
| uses: denoland/setup-deno@v1 | |
| with: | |
| deno-version: 2.4.3 | |
| - name: Setup Bun 1.2.19 | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: 1.2.19 | |
| - name: Setup Node.js 22.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build project | |
| run: npm run build | |
| - name: Type check | |
| run: npx --no-install tsc --noEmit | |
| - name: Run tests | |
| run: npm run test | |
| - name: Run coverage | |
| run: npm run test:coverage |