From 22f1005537bb32fefaa6877d57fdb65523c229c1 Mon Sep 17 00:00:00 2001 From: yushen Date: Wed, 25 Mar 2026 17:32:47 +0800 Subject: [PATCH] fix(release): add test step, fix checkout version, improve brew formula MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix actions/checkout@v6 → v4 (v6 doesn't exist) - Add Go test step before GoReleaser to prevent shipping broken binaries - Add license and test block to Homebrew formula Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/release.yml | 5 ++++- .goreleaser.yml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ae1df51..c973ab40 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -23,6 +23,9 @@ jobs: go-version-file: server/go.mod cache-dependency-path: server/go.sum + - name: Run tests + run: cd server && go test ./... + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: diff --git a/.goreleaser.yml b/.goreleaser.yml index fe2a9fbf..d53a22bc 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -51,5 +51,8 @@ brews: directory: Formula homepage: "https://github.com/multica-ai/super-multica" description: "Multica CLI — local agent runtime and management tool for the Multica platform" + license: "MIT" install: | bin.install "multica-cli" + test: | + system "#{bin}/multica-cli", "version"