v0.1.0: browser microphone capture with decibri API parity #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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node: [18, 20, 22] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - run: npm ci | |
| - run: npm run lint | |
| - run: npm test | |
| - run: npm run build | |
| - name: Check bundle size | |
| run: | | |
| SIZE=$(wc -c < dist/index.mjs) | |
| echo "ESM bundle: $SIZE bytes" | |
| if [ "$SIZE" -gt 10240 ]; then | |
| echo "::error::Bundle exceeds 10KB limit ($SIZE bytes)" | |
| exit 1 | |
| fi |