add GH workflows

This commit is contained in:
Benjamin Palko 2024-12-03 15:57:33 -05:00
parent b645af1337
commit 3f5532a487
3 changed files with 15 additions and 0 deletions

12
.github/workflows/pr.yml vendored Normal file
View file

@ -0,0 +1,12 @@
name: PR Checks
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: build
run: bun run clean && bun run build

1
.gitignore vendored
View file

@ -1 +1,2 @@
node_modules
build

View file

@ -3,6 +3,8 @@
"module": "src/index.ts",
"type": "module",
"scripts": {
"build": "bun build ./src/index.ts --outdir ./build",
"clean": "rm -rf ./build",
"dev": "bun --watch src/index.ts | pino-pretty",
"prisma:generate": "prisma generate"
},