Skip to content

Commit

Permalink
Ensure CI has pgvector
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-brennan2005 committed Jun 20, 2024
1 parent f690096 commit b9fa40d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
image: pgvector:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
Expand Down
4 changes: 2 additions & 2 deletions backend/config/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type intermediateSettings struct {
Google intermediateGoogleOAuthSettings `envPrefix:"SAC_GOOGLE_OAUTH_"`
MicrosoftWeb intermediateMicrosoftWebOAuthSettings `envPrefix:"SAC_MICROSOFT_OAUTH_WEB_"`
MicrosoftMobile intermediateMicrosoftMobileOAuthSettings `envPrefix:"SAC_MICROSOFT_OAUTH_MOBILE_"`
Search SearchSettings `envPrefix:"SAC_SEARCH_"`
Search intermediateSearchSettings `envPrefix:"SAC_SEARCH_"`
}

func (i *intermediateSettings) into() (*Settings, error) {
Expand Down Expand Up @@ -117,7 +117,7 @@ func (i *intermediateSettings) into() (*Settings, error) {
MicrosoftMobile: *microsoftMobile,
AWS: *aws,
Resend: *resend,
Search: i.Search,
Search: *search,
},
}, nil
}
2 changes: 1 addition & 1 deletion backend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"net"
"os"
"os/signal"
"path/filepath"
"syscall"

"github.com/GenerateNU/sac/backend/background"
Expand All @@ -20,7 +21,6 @@ import (
"github.com/GenerateNU/sac/backend/integrations/email"
"github.com/GenerateNU/sac/backend/integrations/file"
"github.com/GenerateNU/sac/backend/integrations/oauth/soth/sothic"
"github.com/GenerateNU/sac/backend/search"
"github.com/GenerateNU/sac/backend/server"
"github.com/GenerateNU/sac/backend/telemetry"
"github.com/GenerateNU/sac/backend/utilities"
Expand Down

0 comments on commit b9fa40d

Please sign in to comment.