mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 07:33:07 +08:00
1329c6082d
- Replace docker-compose.yml (node:lts) with compose.yaml (ghcr.io/pnpm/pnpm:11.3.0) - Bump pnpm to 11.3.0 and add --frozen-lockfile in CI - Add pnpm-workspace.yaml to allow esbuild and sharp builds - Update .gitignore for pnpm store and compose override file
47 lines
878 B
YAML
47 lines
878 B
YAML
name: CI
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- edited
|
|
- synchronize
|
|
- reopened
|
|
workflow_call:
|
|
|
|
jobs:
|
|
build:
|
|
name: Code standards & build
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 3
|
|
|
|
steps:
|
|
- name: "☁️ Checkout repository"
|
|
uses: actions/checkout@v4
|
|
|
|
- name: "📦 Install pnpm"
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: "11.3.0"
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "24"
|
|
cache: "pnpm"
|
|
|
|
- name: "📦 Install dependencies"
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: "🔎 Lint code"
|
|
run: pnpm run lint
|
|
|
|
- name: "📝 Checking code format"
|
|
run: pnpm run format:check
|
|
|
|
- name: "🚀 Build the project"
|
|
run: pnpm run build
|