CI #56
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: | |
| - '**' | |
| pull_request: | |
| schedule: | |
| - cron: '0 0 * * 0' | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-bun: | |
| name: Test with Bun ${{ matrix.bun-version }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| bun-version: | |
| - 1.2 | |
| - 1.3 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: ${{ matrix.bun-version }} | |
| - name: Install dependencies | |
| run: bun install | |
| - name: Check format | |
| run: bun run format:check | |
| - name: Compile project | |
| run: bun compile | |
| - name: Run tests | |
| run: bun test | |
| - name: Run tests with Hono framework | |
| run: USE_HONO=1 bun test |