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