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:
32
.github/workflows/test-build-on-PR.yml
vendored
Normal file
32
.github/workflows/test-build-on-PR.yml
vendored
Normal 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 }}
|
||||||
Reference in New Issue
Block a user