name: Build Project on: push: branches: [main, master] pull_request: branches: [main, master] jobs: build: runs-on: linux # Doit correspondre à GITEA_RUNNER_LABELS (ex: linux:docker,dind) container: node:24 # Utilise l'image officielle Node.js 24 steps: - name: Checkout repository run: | git config --global advice.detachedHead false git checkout -- . git submodule update --init --recursive - name: Setup Node.js run: | curl -fsSL https://deb.nodesource.com/setup_24.x | bash - apt-get install -y nodejs - name: Install dependencies run: npm ci - name: Build project run: npm run build