From 439cafa15894dbb52d62d693f309b569d22eefba Mon Sep 17 00:00:00 2001 From: Kevin Date: Sun, 28 Jun 2026 11:15:24 +0200 Subject: [PATCH] change .gitea --- .gitea/workflows/build.yml | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 4d6585f..75edd16 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1,26 +1,22 @@ -# Gitea CI/CD Workflow File (Inspired by .github/workflows/build.yml) -# This workflow triggers on push or pull request to main/master branches. - -workflow_name: Build Project +name: Build Project on: push: - - branches: [main, master] + branches: [main, master] pull_request: - - branches: [main, master] + branches: [main, master] jobs: build: - runs-on: ubuntu-latest # Or the recommended runner for Gitea + runs-on: linux # Doit correspondre à GITEA_RUNNER_LABELS (ex: linux:docker,dind) + container: node:24 # Utilise l'image officielle Node.js 24 steps: - - uses: actions/checkout@v4 # Assuming compatible action or manual checkout step + - name: Checkout repository + uses: https://gitea.com/gitea/act_actions/checkout@v1 # Action Gitea pour checkout with: fetch-depth: 0 - - name: Setup Node.js - uses: actions/setup-node@v4 # Or equivalent setup step for Gitea runner - with: - node-version: 24 - cache: npm + - name: Install dependencies run: npm ci + - name: Build project run: npm run build \ No newline at end of file