mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-13 08:28:22 +08:00
feat(ci): enable go test in CI pipeline (#15750)
## What problem does this PR solve? Go test files are never compiled in CI — only production binaries via `go build`. This allowed a missing `"sort"` import in `metadata_filter_test.go` to be merged without detection. ## Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [x] New Feature (non-breaking change which adds functionality) ## Changes - Add `go test -count=1 ./internal/...` step after Go build in CI workflow - Fix missing `"sort"` import in `metadata_filter_test.go` (pre-existing compile error) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -367,7 +367,7 @@ func setupHandlerAccessDB(t *testing.T) *gorm.DB {
|
||||
// Insert knowledgebase
|
||||
db.Create(&entity.Knowledgebase{
|
||||
ID: "ds-1", TenantID: "tenant-1", Name: "test-kb", EmbdID: "embd-1",
|
||||
CreatedBy: "user-1", Permission: string(entity.TenantPermissionMe),
|
||||
CreatedBy: "user-1", Permission: string(entity.TenantPermissionTeam),
|
||||
Status: sptr(string(entity.StatusValid)),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user