-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This significantly decreases test turnaround time. Local results (`./run-tests; time ./run-tests.sh`): * with this PR: 14 seconds * without this: 90 seconds Cons: * complicates build script (`build-frontend.sh`)
- Loading branch information
alxndrsn
committed
Dec 3, 2024
1 parent
2d95a61
commit d3452e7
Showing
3 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,18 @@ | ||
#!/bin/bash -eu | ||
|
||
cd client | ||
npm clean-install --no-audit --fund=false --update-notifier=false | ||
npm run build | ||
|
||
if [[ ${SKIP_FRONTEND_BUILD-} != "" ]]; then | ||
echo "[build-frontend] Skipping frontend build." | ||
|
||
# Create minimal fake frontend to allow tests to pass: | ||
mkdir -p dist | ||
echo > dist/blank.html | ||
echo > dist/favicon.ico | ||
echo > dist/index.html '<div id="app"></div>' | ||
|
||
exit | ||
else | ||
npm clean-install --no-audit --fund=false --update-notifier=false | ||
npm run build | ||
fi |
This file contains 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
This file contains 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