Type
New feature
Description
Pages
Benefit
Github actions has an event called deployment_status
. This can be called when a deployment is created.
This event would be very useful for running end to end tests on preview deployments. Right now we run our playwright tests on a dev server in Github actions. However this server is slow to boot and causes our tests to be a bit flaky. It’s also redundant, since we already have a preview deployment that we could run our tests on.
One option is today is to listen to the check_run
event, however this is a bit hacky and I don’t think it supports checks on the PR. Here’s someone who did that because CF doesn’t support deployment_status
: Running GitHub Actions After Cloudflare Pages Deploy | Zuplo Blog
Vercel also supports this:
So to sum-up: It would be nice if the cloudflare pages git integration submitted the deployment_status
. It would be useful for running E2E tests on preview deployments.