Skip to content

Merge pull request #20 from BadlyDrawnBoy/codex/decide-on-sampling-an… #2

Merge pull request #20 from BadlyDrawnBoy/codex/decide-on-sampling-an…

Merge pull request #20 from BadlyDrawnBoy/codex/decide-on-sampling-an… #2

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
validate:
name: Validate Code Quality
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6.0.1
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: '1.3.1'
- name: Install dependencies
run: |
# Dependabot doesn't update bun.lock, so we can't use --frozen-lockfile for its PRs
if [[ "${{ github.actor }}" == "dependabot[bot]" ]]; then
bun install
else
bun install --frozen-lockfile
fi
- name: Typecheck
run: bun run typecheck
- name: Build
run: bun run build
- name: Check Code Quality (Biome)
run: bun run check
- name: Run Tests and Check Coverage
run: bun run test:cov
- name: Upload coverage to Codecov
if: ${{ !cancelled() }}
continue-on-error: true
uses: codecov/codecov-action@v5.5.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
fail_ci_if_error: false
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
continue-on-error: true
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload coverage reports
uses: actions/upload-artifact@v6.0.0
with:
name: coverage-report
path: coverage/