Feat: Replace Console Logging with Event-Based System #87
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-test: | |
| strategy: | |
| matrix: | |
| node: [22.x, 24.x] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: latest | |
| - name: Use Node ${{ matrix.node }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: TypeScript build | |
| run: bun run build | |
| - name: Run tests | |
| run: bun run test | |
| - name: Type coverage (strict) | |
| run: bun run typecov:strict | |
| - name: Dist freshness | |
| run: bun run dist:fresh | |
| - name: Coverage (generate lcov) | |
| run: bun run coverage:lcov | |
| - name: Upload coverage artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: coverage-lcov-${{ matrix.node }} | |
| path: coverage/lcov.info | |
| if-no-files-found: error |