ci: run tests with hono resolution matrix #60
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: ci-bun-transpiler | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'packages/bun-transpiler/**' | |
| pull_request: | |
| branches: ['*'] | |
| paths: | |
| - 'packages/bun-transpiler/**' | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| hono-resolution: ['npm:^3.0.0', 'npm:^4.0.0'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v1 | |
| with: | |
| bun-version: 1.1.32 | |
| - run: yarn set resolution "hono@npm:*" ${{ matrix.hono-resolution }} | |
| - run: yarn workspaces focus hono-middleware @hono/bun-transpiler | |
| - run: yarn workspace @hono/bun-transpiler build | |
| - run: yarn workspace @hono/bun-transpiler publint | |
| - run: yarn workspace @hono/bun-transpiler test --coverage --coverage-reporter lcov | |
| - uses: codecov/codecov-action@v5 | |
| with: | |
| fail_ci_if_error: true | |
| directory: ./packages/bun-transpiler/coverage | |
| flags: bun-transpiler | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |