Files
Cloud-Blog/.github/workflows/build.yml
2026-01-02 20:40:55 +08:00

37 lines
630 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
cache: "bun"
- name: Install Bun
run: npm install -g bun
- 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