Commit b6f2fb2
fix: build frontend before tests to prevent Lunaria CI failures (#712)
Move the Astro production build ahead of test:all so that Lunaria's
i18n status page is generated against a pristine git working tree.
Previously, the lint step (inside test:all) ran astro sync first,
which left generated artifacts on disk. When the build ran afterward,
Lunaria detected those changes and failed with a doubled rootDir path
(src/frontend/src/frontend/…), producing the error:
Failed to retrieve last commit data from …/src/frontend/src/frontend/
src/content/docs/deployment/environments.mdx
By building first, Lunaria never sees a polluted working tree. The
Playwright install is also deferred until after the build since it is
only needed by the test step.
Additionally, the build artifact upload now runs before the dist
sanity-check so the artifact is always captured for debugging, even
when the check fails.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent c916912 commit b6f2fb2
1 file changed
+39
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
68 | 107 | | |
69 | 108 | | |
70 | 109 | | |
| |||
109 | 148 | | |
110 | 149 | | |
111 | 150 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
| |||
0 commit comments