43 lines
879 B
YAML
43 lines
879 B
YAML
name: PR Checks
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
push:
|
|
branches:
|
|
- codex/**
|
|
|
|
concurrency:
|
|
group: pr-checks-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
typecheck-and-build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: "1.3.5"
|
|
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Typecheck
|
|
run: bun run lint
|
|
|
|
- name: Build
|
|
env:
|
|
DATABASE_URL: file:data/fiscal.sqlite
|
|
NEXT_PUBLIC_API_URL: ""
|
|
BETTER_AUTH_SECRET: ci-secret
|
|
BETTER_AUTH_BASE_URL: http://localhost:3000
|
|
BETTER_AUTH_TRUSTED_ORIGINS: http://localhost:3000
|
|
WORKFLOW_TARGET_WORLD: local
|
|
run: bun run build
|