Files
Cloud-Blog/.github/workflows/build.yml
2026-01-03 22:42:43 +08:00

36 lines
610 B
YAML

name: Node.js CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 24
- name: Install Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Check Linting
run: bun run lint
- name: Check Format
run: bun run format
- name: Playgroud build check
run: bun run build