bluehost-wordpress-plugin
bluehost-wordpress-plugin copied to clipboard
Automated workflow retries for Cypress tests
Is your feature request related to a problem? Please describe.
There are typically a few flaky tests that fail when running the full testing matrix. When these fail, we have to re-run the failed jobs to make sure everything is passing.
Describe the solution you'd like
We should implement automatic retries (at least one retry) for failed tests.
This is how WordPress has implemented it:
- https://github.com/WordPress/wordpress-develop/blob/trunk/.github/workflows/failed-workflow.yml
- https://github.com/WordPress/wordpress-develop/blob/trunk/.github/workflows/phpunit-tests.yml#L233-L260