ci: supabase (#4983)
* ci: supabase * test: add supabase to adapter record * test: adjust index tests conditional
This commit is contained in:
@@ -35,6 +35,13 @@ const databaseAdapters = {
|
||||
connectionString: process.env.POSTGRES_URL || 'postgres://127.0.0.1:5432/payloadtests',
|
||||
},
|
||||
}),
|
||||
supabase: postgresAdapter({
|
||||
migrationDir,
|
||||
pool: {
|
||||
connectionString:
|
||||
process.env.POSTGRES_URL || 'postgresql://postgres:postgres@127.0.0.1:54322/postgres',
|
||||
},
|
||||
}),
|
||||
}
|
||||
|
||||
export function buildConfigWithDefaults(testConfig?: Partial<Config>): Promise<SanitizedConfig> {
|
||||
|
||||
@@ -418,7 +418,7 @@ describe('Fields', () => {
|
||||
})
|
||||
})
|
||||
|
||||
if (isMongoose(payload) || !['postgres'].includes(process.env.PAYLOAD_DATABASE)) {
|
||||
if (isMongoose(payload)) {
|
||||
describe('indexes', () => {
|
||||
let indexes
|
||||
const definitions: Record<string, IndexDirection> = {}
|
||||
|
||||
Reference in New Issue
Block a user