Wait for CI before deploying
complete
Jake Cooper
complete
This has been deployed for a while
Settings -> Wait for CI
Honza Sterba
we solved this by having a separate branch/repo into which CI pushes latest after successful build
Angelo Saraceno
Merged in a post:
Run tests before deploying to production
Jay
Many of us use
npm test
in our daily workflows to make sure our changes didn't break anything major.Having a built-in "Test command" section right next to the build command and start command would be amazing.
Right now I'm getting around by adding a
phase,test
in my nixpacks.toml
but having this built-in and part of the UI would be amazing.I see a similar, but not quite the same post here: (https://feedback.railway.app/feature-requests/p/wait-for-ci-before-deploying)
Faraz Patankar
in progress
Hey y'all, this feature is now available to our beta users. We'd love some feedback on how to improve it.
You can read more about it in our docs: https://docs.railway.app/deploy/deployments#check-suites
Kostis Kapelonis
This is the same as Heroku's "Wait for CI to pass before deploy” checkbox." https://devcenter.heroku.com/articles/github-integration#automatic-deploys
Jake Cooper
planned
O
Oden
Healthchecks doesn't solve this. This is about waiting for a successful CI build, the application should never be deployed until the CI passes. Just because a healthcheck passes and the server is responding, doesn't mean all of the unit tests passed.
Angelo Saraceno
Oden: Gotcha, we just considered this feature but I think we are a little light on requirements.
Do you need us to talk to an external CI provider? Or would you want something like native support for GitHub Actions out of the box.
O
Oden
Angelo Saraceno: Ideally it would just integrate with GitHub's Checks API, and only deploy after they have all passed on the commit. That way it would work with any CI/testing provider that is set up for the repository.
Angelo Saraceno
complete
Healthchecks should solve this usecase. For more information see: https://docs.railway.app/diagnose/healthchecks
Angelo Saraceno
in progress
Does the new Healthchecks feature solve your use-case? https://docs.railway.app/diagnose/healthchecks
Jake Cooper
planned
Load More
→