create pr gate workflow

This commit is contained in:
Benjamin Palko 2024-12-19 22:49:03 -05:00
parent abc30a2a03
commit a34c020354
4 changed files with 29 additions and 11 deletions

23
.github/workflows/pr.yaml vendored Normal file
View file

@ -0,0 +1,23 @@
name: PR Gate
on:
pull_request:
branches: ['*']
jobs:
build:
name: Test & Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Bun Setup
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install
run: bun install
- name: Test
run: bun test
- name: Build
run: bun run build
- name: Prisma Schema Check
run: bun prisma:validate