fix(tests+publish): align the repo with the docs simplification and t… #226
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 (v5: node24 runtime — v4 triggers the | |
| # "Node.js 20 is deprecated" runner warning) | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| # 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 | |
| # --frozen-lockfile: install EXACTLY the committed bun.lock. The old | |
| # `--force` re-resolved from the registry on every run, letting | |
| # floating transitives (e.g. @types/node via @types/pidusage's "*") | |
| # drift to whatever was "latest" that day — the moving target behind | |
| # the "fs/promises has no exported member 'exists'" CI failure. | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| # 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 |