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