ci: supabase (#4983)

* ci: supabase

* test: add supabase to adapter record

* test: adjust index tests conditional
This commit is contained in:
Elliot DeNolf
2024-02-02 15:26:18 -05:00
committed by GitHub
parent db22cbdf21
commit c0eef90cdc
3 changed files with 30 additions and 3 deletions

View File

@@ -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> {

View File

@@ -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> = {}