ci: run e2e on direct main pushes only#195
Merged
nicnocquee merged 8 commits intomainfrom May 5, 2026
Merged
Conversation
Keep E2E as a PR check, but skip redundant runs on merge commits by running on main only when the pushed commit is not associated with any PR.
Make the direct-push detection job always complete so PR-triggered E2E isn't skipped due to a missing/conditional dependency.
Configure the e2e job to run in a Playwright container, improving consistency and reliability. Removed caching and installation steps for Playwright browsers as they are now handled within the container.
Ensure oven-sh/setup-bun works inside the Playwright container by installing unzip before setting up Bun.
Playwright Firefox requires $HOME to be owned by the running user inside the container; set HOME=/root so Firefox can launch reliably in CI.
Change the HOME environment variable to /home/pwuser and add user option to the Playwright container to ensure proper permissions for Firefox execution in CI.
Run the e2e container as uid 1000 so actions and Playwright Firefox share a writable, owned home directory and avoid checkout permission failures.
Remove the custom container user so GitHub action file commands can write to runner temp paths, while keeping HOME on /root for Firefox launch stability.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mainby only running onmainwhen the pushed commit is not associated with any PR.Notes
pushtomain.Test plan
main.main(admin-only) and confirm E2E runs.