Skip to content

Commit 54ab108

Browse files
ci: add lint and test for Claude Code plugin
1 parent d1b27e7 commit 54ab108

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,28 @@ jobs:
130130
- name: Test
131131
working-directory: java
132132
run: ./gradlew --no-daemon test
133+
134+
claude-code-plugin:
135+
name: Claude Code Plugin
136+
runs-on: ubuntu-latest
137+
steps:
138+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
139+
with:
140+
persist-credentials: false
141+
142+
- uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
143+
with:
144+
go-version-file: plugins/claude-code/go.mod
145+
146+
- name: Setup mise
147+
uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3
148+
with:
149+
install: true
150+
install_args: golangci-lint
151+
cache: true
152+
153+
- name: Lint
154+
run: mise run lint:go:plugin-claude-code
155+
156+
- name: Test
157+
run: mise run test:go:plugin-claude-code

mise.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ while IFS= read -r moddir; do
4545
done < <(find . -name go.mod -not -path './node_modules/*' -exec dirname {} \\; | sort)
4646
"""
4747

48+
[tasks."lint:go:plugin-claude-code"]
49+
description = "Lint Claude Code plugin"
50+
dir = "plugins/claude-code"
51+
run = "GOWORK=off golangci-lint run ./..."
52+
4853
[tasks."lint:cs"]
4954
description = "Verify .NET SDK formatting and analyzer checks"
5055
run = "dotnet format dotnet/Sigil.DotNet.sln --verify-no-changes"

0 commit comments

Comments
 (0)