From d0fa03701020a986112b59b9f51c8c5f97b91c52 Mon Sep 17 00:00:00 2001 From: Edgar Friendly Date: Tue, 18 Aug 2026 07:42:42 +0200 Subject: [PATCH] ci(tests): activa gcc-toolset-12 para compilar better-sqlite3 con npm ci --- .gitea/workflows/tests.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/tests.yml b/.gitea/workflows/tests.yml index f128722..a7df262 100644 --- a/.gitea/workflows/tests.yml +++ b/.gitea/workflows/tests.yml @@ -18,7 +18,12 @@ jobs: - uses: actions/checkout@v4 - name: Instalar dependencias - run: npm ci + # better-sqlite3 (v12) requiere C++20 y el GCC 8 base de AlmaLinux 8 + # no lo soporta: se activa gcc-toolset-12 igual que en deploy.yml + shell: bash + run: | + source /opt/rh/gcc-toolset-12/enable 2>/dev/null || echo "WARN: gcc-toolset-12 no encontrado" + npm ci - name: Pruebas unitarias y de componente (offline) run: npm test @@ -35,7 +40,10 @@ jobs: - uses: actions/checkout@v4 - name: Instalar dependencias - run: npm ci + shell: bash + run: | + source /opt/rh/gcc-toolset-12/enable 2>/dev/null || echo "WARN: gcc-toolset-12 no encontrado" + npm ci - name: Pruebas de integración (API en memoria + Nominatim) run: npm run test:integration