Email Testing in GitHub Actions CI/CD

How to test email flows in GitHub Actions CI/CD using disposable inboxes. Parallel matrix testing, secrets management, GitLab CI, CircleCI — pay per email, no subscription.

Frequently Asked Questions

Do I need to run any service containers in GitHub Actions?

No. sed.sh receives email over MX on its own servers. Your test runner just needs outbound HTTPS to api.sed.sh. No Docker service, no port forwarding, no extra configuration.

What if my app uses a mail trap like Mailhog in development?

You can keep Mailhog for local development and use sed.sh in CI by setting different SMTP/email settings per environment. A common pattern is to set MAIL_BACKEND=smtp and SMTP_HOST=mailhog locally, but set MAIL_BACKEND=real and use sed.sh inboxes in CI.

How do I handle flaky timing — what if the email is slow?

Use a polling loop with a reasonable timeout (30 seconds is usually plenty). Emails via AWS SES arrive in 1–5 seconds in practice. If your inbox poll times out, check that your app is actually sending — the issue is usually a misconfigured SMTP host rather than a slow delivery.

Can I use sed.sh with Cypress in GitHub Actions?

Yes. Install the @sed-sh/sdk package, set SED_SH_API_KEY as an env variable, and call the SDK from Cypress tasks (server-side) or cy.request() from the test. See the Cypress guide for a full example.

What happens if the CI run is cancelled partway through?

Any inboxes created before cancellation will auto-expire after 7 days. No manual cleanup is needed. If you used the concurrency group to cancel superseded runs, those orphaned inboxes cost nothing after expiry.