fix(ci): enable branch smoke tests and shift migration trigger to health check
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 16s
Build & Deploy / 🧪 QA (push) Successful in 3m22s
Build & Deploy / 🏗️ Build (push) Successful in 5m2s
Build & Deploy / 🚀 Deploy (push) Successful in 28s
Build & Deploy / 🧪 Post-Deploy Verification (push) Failing after 4m14s
Build & Deploy / 🔔 Notify (push) Successful in 2s

This commit is contained in:
2026-03-05 12:08:49 +01:00
parent fe3cb37351
commit 42c287f519
3 changed files with 10 additions and 7 deletions

View File

@@ -28,14 +28,9 @@ const dirname = path.dirname(filename);
export default buildConfig({
onInit: async (payload) => {
payload.logger.info('Payload onInit hook started');
if (process.env.NODE_ENV === 'production') {
payload.logger.info('Running automated migrations...');
await payload.db.migrate();
payload.logger.info('Seeding database...');
await seedDatabase(payload);
}
payload.logger.info('Payload onInit hook finished');
},
admin: {
user: Users.slug,