Files
pc_builder/.gitea/workflows/build.yml
T
Kevin b217b33c2d
Build Project / build (push) Failing after 1s
Fix Gitea workflow for CI compatibility
2026-06-28 11:28:55 +02:00

28 lines
726 B
YAML

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