add GH workflows
This commit is contained in:
parent
b645af1337
commit
3f5532a487
3 changed files with 15 additions and 0 deletions
12
.github/workflows/pr.yml
vendored
Normal file
12
.github/workflows/pr.yml
vendored
Normal 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
1
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
||||||
node_modules
|
node_modules
|
||||||
|
build
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@
|
||||||
"module": "src/index.ts",
|
"module": "src/index.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"build": "bun build ./src/index.ts --outdir ./build",
|
||||||
|
"clean": "rm -rf ./build",
|
||||||
"dev": "bun --watch src/index.ts | pino-pretty",
|
"dev": "bun --watch src/index.ts | pino-pretty",
|
||||||
"prisma:generate": "prisma generate"
|
"prisma:generate": "prisma generate"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue