This is a demo on how to use the repository dispatch event to listen to dispatch events and trigger specific Cypress e2e tests from another repository. Workflows in this repo contain dispatchers that will send events to cypress-gh-actions-dispatch-workflow triggering the according test workflows.
- Fork both cypress-gh-actions-dispatcher and cypress-gh-actions-dispatch-workflow;
- This repo uses the peter-evans/repository-dispatch action to dispatch events easily. Make sure to generate a (Personal Access Token (PAT) and add it as a Github Actions secret for the dispatch to work;
- Lastly, run the "trigger end-to-end" workflow on the dispatcher repo by picking which test suite you would like to dispatch an event for.