Skip to content

Stabilize bun build and CLI routing tests #64

Stabilize bun build and CLI routing tests

Stabilize bun build and CLI routing tests #64

Workflow file for this run

name: CI
on:
push:
branches: [ main, master ]
pull_request:
jobs:
test-and-codecov:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install deps
run: bun install --frozen-lockfile
- name: Lint and format check
run: bun run lint
- name: Build
run: bun run build
- name: Test (sharded) with coverage
run: bun run coverage:ci
- name: Validate coverage format
run: |
echo "📊 Coverage validation:"
ls -la coverage/
echo "📁 LCOV info size: $(wc -l < coverage/lcov.info) lines"
echo "📂 Source files in LCOV: $(grep -c '^SF:' coverage/lcov.info)"
echo "✅ Coverage file is ready for upload"
- name: Upload to Codecov
uses: codecov/codecov-action@v3
with:
files: coverage/lcov.info
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true