Skip to content

Revert seed change; decouple tests from production seed; stabilize AddTodo tests #33

Revert seed change; decouple tests from production seed; stabilize AddTodo tests

Revert seed change; decouple tests from production seed; stabilize AddTodo tests #33

name: PR Quality Checks
on:
pull_request:
paths:
- 'apps/**'
- 'packages/**'
- '*.json'
- '*.js'
- '*.ts'
- '*.tsx'
- 'bun.lock'
- 'turbo.json'
- 'biome.json'
- '.github/workflows/**'
- '!**/*.md'
- '!**/*.txt'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
jobs:
quality-checks:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Bun and install dependencies
uses: ./.github/composite/bun-install
- name: Cache Turbo
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.ref_name }}-${{ hashFiles('**/bun.lockb') }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-${{ github.ref_name }}-${{ hashFiles('**/bun.lockb') }}-
${{ runner.os }}-turbo-${{ github.ref_name }}-
${{ runner.os }}-turbo-
- name: Run Turbo lint
run: bun run turbo lint
- name: Run Turbo build
run: bun run turbo build
- name: Run Turbo typecheck
run: bun run turbo typecheck
- name: Run Turbo tests
run: bun run turbo test:ci
- name: Summary
run: |
echo "## PR Quality Checks Summary" >> $GITHUB_STEP_SUMMARY
echo "✅ Linting passed (Biome)" >> $GITHUB_STEP_SUMMARY
echo "✅ Build successful" >> $GITHUB_STEP_SUMMARY
echo "✅ TypeScript compilation passed" >> $GITHUB_STEP_SUMMARY
echo "✅ Tests passed" >> $GITHUB_STEP_SUMMARY
echo "✅ All checks completed with Turbo caching" >> $GITHUB_STEP_SUMMARY