I’d like to implement a conditional E2E test that needs to pass before a release is executed in production.
Currently our Github actions workflow is as follows:
- A user commits a change to a branch
- A PR is created, tested, merged to master.
- A release is queued to staging automatically
- A Cypress E2E test is executed, to test the results in staging.
- The user manually releases to production.
Between steps 4 and 5, i’d like a quality gate established where if 4 fails, the user cannot run 5.
How can I best achieve this? Open to process change too.