add gitea pr checks workflow
This commit is contained in:
42
.gitea/workflows/pr-checks.yml
Normal file
42
.gitea/workflows/pr-checks.yml
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
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
|
||||||
Reference in New Issue
Block a user