Skip to content

ci: run e2e on direct main pushes only#195

Merged
nicnocquee merged 8 commits intomainfrom
ci/e2e-direct-push-only
May 5, 2026
Merged

ci: run e2e on direct main pushes only#195
nicnocquee merged 8 commits intomainfrom
ci/e2e-direct-push-only

Conversation

@nicnocquee
Copy link
Copy Markdown
Member

Summary

  • Keep E2E as a PR check.
  • Skip redundant post-merge E2E runs on main by only running on main when the pushed commit is not associated with any PR.

Notes

  • Uses GitHub API to detect PR-associated commits on push to main.

Test plan

  • Open a PR and confirm E2E runs.
  • Merge that PR and confirm E2E does not rerun on main.
  • Push directly to main (admin-only) and confirm E2E runs.

nicnocquee added 8 commits May 5, 2026 22:33
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.
@nicnocquee nicnocquee merged commit 596991f into main May 5, 2026
11 checks passed
@nicnocquee nicnocquee deleted the ci/e2e-direct-push-only branch May 5, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant