From 87d411bc70abcdfe1fd2ab32395c473b955866a2 Mon Sep 17 00:00:00 2001 From: boojack Date: Mon, 6 Apr 2026 08:02:21 +0800 Subject: [PATCH] docs(agents): align contributor guidance with current CI workflows (#5808) --- AGENTS.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 892553282..48d0ac3bf 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,7 +2,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. -Self-hosted note-taking tool. Go 1.26 backend (Echo v5, Connect RPC + gRPC-Gateway), React 18 + TypeScript 5.9 + Vite 7 frontend, Protocol Buffers API, SQLite/MySQL/PostgreSQL. +Self-hosted note-taking tool. Go 1.26 backend (Echo v5, Connect RPC + gRPC-Gateway), React 18 + TypeScript 6 + Vite 7 frontend, Protocol Buffers API, SQLite/MySQL/PostgreSQL. ## Commands @@ -12,7 +12,9 @@ go run ./cmd/memos --port 8081 # Start dev server go test ./... # Run all tests go test -v ./store/... # Run store tests (all 3 DB drivers via TestContainers) go test -v -race ./server/... # Run server tests with race detection +go test -v -race ./plugin/... # Run plugin tests with race detection go test -v -run TestFoo ./pkg/... # Run a single test +go mod tidy -go=1.26.1 # Match CI tidy check golangci-lint run # Lint (v2, config: .golangci.yaml) golangci-lint run --fix # Auto-fix lint issues (includes goimports) @@ -96,7 +98,9 @@ web/src/ ## CI/CD -- **backend-tests.yml:** Go 1.26.1, golangci-lint v2.4.0, tests parallelized by group (store, server, plugin, other) +- **backend-tests.yml:** Go 1.26.1, `go mod tidy -go=1.26.1`, golangci-lint v2.11.3, tests parallelized by group (store, server, plugin, other) +- **build-canary-image.yml:** Builds frontend with `pnpm release`, then publishes canary multi-arch container images for linux/amd64 and linux/arm64 - **frontend-tests.yml:** Node 24, pnpm 10, lint + build - **proto-linter.yml:** buf lint + format check +- **release.yml:** On version tags, builds frontend once, packages binaries for Linux/macOS/Windows, and publishes release container images/tags - **Docker:** Multi-stage (`scripts/Dockerfile`), Alpine 3.21, non-root user, port 5230, multi-arch (amd64/arm64/arm/v7)