I want to automatically run tests and type-checking before each deployment to Vercel. Currently I just push to main and Vercel deploys automatically, but sometimes broken code gets deployed.
My stack: Next.js 14, TypeScript, Vitest for tests. How do I set up GitHub Actions to block the deployment if tests fail?
Tom Kowalski
asked 1 months ago1
Answers18
Upvotes3100
ViewsI accidentally pushed a commit with sensitive data (API key) to a public GitHub repo. I need to remove it.
I know git revert creates a new commit undoing the changes. But the sensitive data is still in the git history — is that a problem? What's the cleanest way to handle this without breaking my team's workflow?
David Kim
asked 4 months ago2
Answers61
Upvotes14700