Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

ci(test): give the e2e container a compiler on a node_modules cache miss

Maurice6bc27a259b4f
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml
index e09c8015d..279fe1e26 100644
--- a/.github/actions/setup/action.yml
+++ b/.github/actions/setup/action.yml
@@ -94,6 +94,16 @@ runs:
SCOPE: ${{ inputs.scope }}
run: |
set -euo pipefail
+ # better-sqlite3 ships no prebuilt binary and compiles on install. The
+ # hosted runners carry a compiler; the Playwright container of the e2e
+ # jobs does not, so on a cache miss there it gets one first. A hit,
+ # the usual case once a push to dev has saved the container's key,
+ # never reaches this step.
+ if ! command -v make >/dev/null || ! command -v g++ >/dev/null; then
+ export DEBIAN_FRONTEND=noninteractive
+ timeout 300 apt-get update -qq
+ timeout 300 apt-get install -y -qq --no-install-recommends make g++
+ fi
case "$SCOPE" in
full) npm ci ;;
# The scoped install keeps @testing-library/dom (a peer of