chore: adopt biome for linting and formatting, wire turbo env, add ci workflow

This commit is contained in:
Jose Selesan
2026-10-15 15:39:17 -03:00
parent a95d14688a
commit ae11863613
40 changed files with 182 additions and 107 deletions

53
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,53 @@
name: CI
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
# Prisma needs a connection string to generate the client; no database is
# contacted during lint, typecheck, test or build.
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/superlist?schema=public
BETTER_AUTH_SECRET: ci-only-secret-not-used-at-build-time
BETTER_AUTH_URL: http://localhost:4100
CORS_ORIGIN: http://localhost:7153
VITE_API_URL: http://localhost:4100
jobs:
verify:
name: Verify
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: 1.4.0
# The Prisma CLI runs on Node.
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Generate Prisma client
run: bun run db:generate
- name: Lint and format check
run: bun run lint:ci
- name: Typecheck
run: bun run typecheck
- name: Test
run: bun run test
- name: Build
run: bun run build