fix packages
Build & Push / Pipeline Tests (push) Successful in 2m2s
Test / Type Check (all packages) (push) Successful in 56s
Build & Push / Build & Push Docker Image (push) Successful in 5m44s
Test / API Unit Tests (push) Successful in 1m20s
Test / Homepage Unit Tests (push) Successful in 47s
Test / Carplace Unit Tests (push) Successful in 44s
Test / Admin Unit Tests (push) Successful in 43s
Test / Dashboard Unit Tests (push) Successful in 42s
Test / API Integration Tests (push) Successful in 1m10s

This commit is contained in:
root
2026-08-12 23:32:15 -04:00
parent 4587ab71ac
commit 6004fbafa0
4 changed files with 464 additions and 12713 deletions
+31 -12
View File
@@ -99,30 +99,49 @@ jobs:
- name: Install dependencies
run: |
if [ ! -f apps/api/package.json ] || [ ! -f packages/database/package.json ]; then
echo "::error::Workspace packages missing from checkout (apps/api, packages/database)."
ls -la apps packages 2>/dev/null || true
exit 1
fi
for attempt in 1 2 3; do
npm ci --include=optional && break
npm ci --include=optional --workspaces && break
if [ "$attempt" = "3" ]; then
exit 1
fi
npm cache verify || true
sleep "$((attempt * 10))"
done
node -e "require('rollup/package.json')" || {
echo "::error::npm ci did not install workspace deps (rollup missing). Confirm full package-lock.json was pushed."
ls -1 node_modules | head -n 80 || true
exit 1
}
- name: Repair Rollup optional dependency on Linux ARM64
run: |
ARCH="$(uname -m)"
if [ "$ARCH" = "aarch64" ] || [ "$ARCH" = "arm64" ]; then
ROLLUP_VERSION="$(node -p "require('./node_modules/rollup/package.json').version")"
for attempt in 1 2 3; do
npm install --no-save --include=optional "@rollup/rollup-linux-arm64-gnu@$ROLLUP_VERSION" && break
if [ "$attempt" = "3" ]; then
exit 1
fi
npm cache verify || true
sleep "$((attempt * 10))"
done
node -e "require('@rollup/rollup-linux-arm64-gnu')"
if [ "$ARCH" != "aarch64" ] && [ "$ARCH" != "arm64" ]; then
exit 0
fi
if node -e "require('@rollup/rollup-linux-arm64-gnu')" 2>/dev/null; then
echo "Rollup ARM64 native binding already present."
exit 0
fi
ROLLUP_VERSION="$(node -p "require('./package-lock.json').packages['node_modules/rollup'].version")"
if [ -z "$ROLLUP_VERSION" ] || [ "$ROLLUP_VERSION" = "undefined" ]; then
echo "::error::rollup version not found in package-lock.json"
exit 1
fi
for attempt in 1 2 3; do
npm install --no-save --include=optional "@rollup/rollup-linux-arm64-gnu@$ROLLUP_VERSION" && break
if [ "$attempt" = "3" ]; then
exit 1
fi
npm cache verify || true
sleep "$((attempt * 10))"
done
node -e "require('@rollup/rollup-linux-arm64-gnu')"
- name: Generate database client
run: npm run db:generate