22 lines
560 B
YAML
22 lines
560 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
|
|
uses: https://gitea.com/gitea/act_actions/checkout@v1 # Action Gitea pour checkout
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Build project
|
|
run: npm run build |