feat: add fiber-based hook implementations #373
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: π§ͺ Continuous Integration | |
| on: | |
| push: | |
| branches-ignore: [master] | |
| pull_request: | |
| branches: [master] | |
| jobs: | |
| test: | |
| name: π§ͺ Test Suite | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: π₯ Checkout code | |
| uses: actions/checkout@v4 | |
| - name: π’ Setup Bun | |
| uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: latest | |
| - name: π¦ Install dependencies | |
| run: bun install | |
| - name: π Lint and format check | |
| run: bun run check | |
| - name: π Typecheck | |
| run: bun run typecheck | |
| - name: π§ͺ Run tests | |
| run: bun test | |
| - name: ποΈ Test build | |
| run: bun run build | |
| - name: π Check bundle size | |
| run: | | |
| BUNDLE_SIZE=$(du -sh dist/ | cut -f1) | |
| echo "π¦ Bundle size: $BUNDLE_SIZE" | |
| echo "bundle-size=$BUNDLE_SIZE" >> $GITHUB_OUTPUT | |
| compatibility: | |
| name: π Compatibility Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: π₯ Checkout code | |
| uses: actions/checkout@v4 | |
| - name: π’ Setup Bun | |
| uses: oven-sh/setup-bun@v1 | |
| - name: π¦ Install dependencies | |
| run: bun install | |
| - name: ποΈ Build package | |
| run: bun run build | |
| - name: π§ͺ Test package installation | |
| run: | | |
| # Test local package installation | |
| npm pack | |
| PACKAGE=$(ls *.tgz) | |
| mkdir test-install && cd test-install | |
| npm init -y | |
| npm install ../$PACKAGE | |
| echo "β Package installation test passed" |