Ben Ezard
04/12/2021, 10:43 PMnpx prisma migrate deploy
within a Jest global setup script, and it works locally but fails when running in GitHub Actions CI, saying
/usr/bin/env: 'node': No such file or directory
Command failed: npx prisma migrate deploy
No idea why it's happening since Node is definitely in the path, but being able to run migrations from code (e.g. prismaClient.runMigrations()
) would still be super useful for test setup
I imagine it'd probably be necessary to specify the path to the Prisma schema/migrations directory in case the current working directory doesn't include themBen Ezard
04/13/2021, 9:22 AM