Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
add: make test target for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
iwilltry42 committed May 3, 2024
1 parent 98a0187 commit d1f09fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ tools:
if ! command -v swag &> /dev/null; then go install github.com/swaggo/swag/cmd/swag@latest; fi


test:
go test -v ./...

# cross-compilation for all targets
TARGETS ?= darwin/amd64 darwin/arm64 linux/amd64 linux/386 linux/arm linux/arm64 windows/amd64
Expand Down
2 changes: 1 addition & 1 deletion pkg/index/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func New(dsn string, autoMigrate bool) (*DB, error) {
if strings.HasPrefix(dsn, "sqlite://") {
gdb = sqlite.Open(strings.TrimPrefix(dsn, "sqlite://"))
} else {
return nil, fmt.Errorf("unsupported database dialect", dsn)
return nil, fmt.Errorf("unsupported database dialect %q", dsn)
}
db, err := gorm.Open(gdb, &gorm.Config{
SkipDefaultTransaction: true,
Expand Down

0 comments on commit d1f09fa

Please sign in to comment.