From 3f5532a4874681a625fe1cebc1eae0b4083bdf05 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Tue, 3 Dec 2024 15:57:33 -0500 Subject: [PATCH] add GH workflows --- .github/workflows/pr.yml | 12 ++++++++++++ .gitignore | 1 + package.json | 2 ++ 3 files changed, 15 insertions(+) create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 0000000..c1623fb --- /dev/null +++ b/.github/workflows/pr.yml @@ -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 diff --git a/.gitignore b/.gitignore index 3c3629e..dd87e2d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +build diff --git a/package.json b/package.json index 495f3ef..780797a 100644 --- a/package.json +++ b/package.json @@ -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" },