From 76e94807e590bb5e7a5c05fef657ea8a5b107dce Mon Sep 17 00:00:00 2001 From: francy51 Date: Sun, 1 Mar 2026 21:15:10 -0500 Subject: [PATCH] add gitea pr checks workflow --- .gitea/workflows/pr-checks.yml | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .gitea/workflows/pr-checks.yml diff --git a/.gitea/workflows/pr-checks.yml b/.gitea/workflows/pr-checks.yml new file mode 100644 index 0000000..71d4bd2 --- /dev/null +++ b/.gitea/workflows/pr-checks.yml @@ -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