Commit 596991f
authored
ci: run e2e on direct main pushes only (#195)
* ci: run e2e on direct main pushes only
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.
* ci: ensure e2e runs on PRs
Make the direct-push detection job always complete so PR-triggered E2E isn't skipped due to a missing/conditional dependency.
* ci: update e2e workflow to use Playwright container
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.
* ci: install unzip in e2e container
Ensure oven-sh/setup-bun works inside the Playwright container by installing unzip before setting up Bun.
* ci: set HOME for Firefox in playwright container
Playwright Firefox requires $HOME to be owned by the running user inside the container; set HOME=/root so Firefox can launch reliably in CI.
* ci: update e2e workflow to set HOME for Playwright user
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.
* ci: use correct Playwright container user uid
Run the e2e container as uid 1000 so actions and Playwright Firefox share a writable, owned home directory and avoid checkout permission failures.
* ci: restore root runner context in e2e container
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.
---------
Co-authored-by: Nico Prananta <311343+nicnocquee@users.noreply.github.com>1 parent 1902d00 commit 596991f
1 file changed
Lines changed: 49 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
15 | 47 | | |
16 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
17 | 59 | | |
18 | 60 | | |
19 | 61 | | |
| |||
46 | 88 | | |
47 | 89 | | |
48 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
49 | 94 | | |
50 | 95 | | |
51 | 96 | | |
| |||
62 | 107 | | |
63 | 108 | | |
64 | 109 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | 110 | | |
77 | 111 | | |
78 | 112 | | |
| |||
94 | 128 | | |
95 | 129 | | |
96 | 130 | | |
97 | | - | |
| 131 | + | |
98 | 132 | | |
99 | 133 | | |
100 | 134 | | |
101 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
102 | 139 | | |
103 | 140 | | |
104 | 141 | | |
| |||
0 commit comments