create pr gate workflow
This commit is contained in:
parent
abc30a2a03
commit
a34c020354
4 changed files with 29 additions and 11 deletions
23
.github/workflows/pr.yaml
vendored
Normal file
23
.github/workflows/pr.yaml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue