I am learning CI/CD pipeline and I had created a single one to deploy to staging environment every time I push to develop branch, using GitHub Actions.

I also understood how to perform unit tests with PHPUnit locally.

My question is, how to assure my plugin code changes will not break my staging site during the deploy? How can I test with my changes triggers an Error 500 or something related? Should I use PHPUnit or some existing GH Action?

I am a bit confused.

1 Answer 1


There are a couple GitHub Actions available in the Marketplace for checking response codes:

There's also this question on Stack Overflow if you want to do it custom: https://stackoverflow.com/questions/65728933/how-to-capture-a-curl-http-status-code-in-a-github-action-to-determine-success-f

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.