Implemented the database, authentication, access rules, and seed data
This commit is contained in:
@@ -14,6 +14,9 @@ function run(command, args) {
|
||||
if (result.error) throw result.error;
|
||||
if (result.status !== 0) process.exit(result.status ?? 1);
|
||||
}
|
||||
// Workflow tests write fixtures. Recreate only the disposable test service; never touch db.
|
||||
run('docker', ['compose', '--profile', 'test', 'stop', 'db-test']);
|
||||
run('docker', ['compose', '--profile', 'test', 'rm', '-f', 'db-test']);
|
||||
run('docker', ['compose', '--profile', 'test', 'up', '-d', '--wait', 'db-test']);
|
||||
run('pnpm', ['exec', 'turbo', 'run', 'build']);
|
||||
run('pnpm', ['--filter', '@merchantflow/database', 'migrate']);
|
||||
|
||||
Reference in New Issue
Block a user