feat: 增加ism管理接口
test: 索引模板和ism的单元测试和集成测试
This commit is contained in:
12
test.ps1
12
test.ps1
@@ -41,6 +41,14 @@ function Run-Linting {
|
||||
Write-Section "Code Linting"
|
||||
|
||||
try {
|
||||
# 先运行 go fmt
|
||||
Write-Info "Formatting code..."
|
||||
$fmtOutput = go fmt ./... 2>&1
|
||||
if ($fmtOutput) {
|
||||
Write-Info "Formatted files:"
|
||||
$fmtOutput | ForEach-Object { Write-Host " $_" -ForegroundColor Gray }
|
||||
}
|
||||
|
||||
Write-Info "Running golangci-lint..."
|
||||
|
||||
# 检查 golangci-lint 是否安装
|
||||
@@ -58,9 +66,7 @@ function Run-Linting {
|
||||
return $true
|
||||
} else {
|
||||
Write-Failure "Linting failed"
|
||||
if ($Verbose) {
|
||||
Write-Host $output -ForegroundColor Red
|
||||
}
|
||||
Write-Host $output -ForegroundColor Red
|
||||
return $false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user