Currently, to trigger E2E tests, we need to open the workflow page on the GitHub UI, select a branch, and run the tests. There's a more developer-friendly way to do this. We can easily add support for the `/run-e2e` command using GitHub Actions workflows. When you run `/run-e2e` on a pull request, it triggers E2E tests for that PR. You can also pass specific test cases with `/run-e2e vm,github_runner_ubuntu_2404`. It only accepts comments from contributors, similar to the E2E test trigger. Since "issue_comment" event doesn't have pull request head ref, we get it from API. Additionally, we can add a check to this workflow to trigger E2E tests if there are any code changes in the `rhizome` path.
2.3 KiB
2.3 KiB