Update README.md #27
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: Run Bun Tests | |
| # Trigger workflow on push or pull request | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| test: | |
| name: Run Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout your repository | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| # Setup Bun | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.3.9 # pin a known stable version | |
| # Show Bun version only | |
| - name: Bun version | |
| run: bun --version | |
| # Install dependencies | |
| - name: Install dependencies | |
| run: bun install --force | |
| # Type check (TS) | |
| - name: Type check | |
| run: bun run tsc --noEmit | |
| # Run tests with CI flags | |
| - name: Run tests | |
| run: bun test --ci --timeout 120000 |