CI: Test build on Pull Request (#83)

* Created test build for PRs
* Specify node version for Vercel adapter
* Added SANITY_ID secret
This commit is contained in:
Antoine Phan
2026-01-08 21:50:12 -05:00
committed by GitHub
parent 53474b24c0
commit b9d1402211

32
.github/workflows/test-build-on-PR.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: Test Build on Pull Request
on:
pull_request:
branches:
- main
jobs:
test-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '24.x'
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Build the website
run: bun run build
env:
SANITY_ID: ${{ secrets.SANITY_ID }}