From 7983a6875fa68817dabe2ccf4529752b73ffb4de Mon Sep 17 00:00:00 2001 From: Enzo Marioni Date: Thu, 1 Oct 2026 17:30:19 +0200 Subject: [PATCH] CI Gitea : .gitea/workflows/ci.yml appelle avalon-vanguard/ci node.yml@v1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Portage de .github/workflows/ci.yml vers le workflow partagé, avec { e2e: true } : mêmes déclencheurs (push sur main et develop, pull_request, workflow_dispatch), même concurrency (groupe workflow + ref, cancel-in-progress), Node 22. node.yml lance npm ci, lint, typecheck (etl, e2e, worker), npm test (sans watch : CI=true), le build de production, puis Playwright (Chromium). secrets: inherit. Différences assumées : - un seul job séquentiel au lieu de deux jobs parallèles : l'e2e ne tourne plus si une étape précédente échoue ; - pas de bloc `permissions: contents: read` : dans Gitea 1.27.3, le jeton d'un job appelé ne prend que les permissions déclarées par le workflow appelé (services/actions/reusable_workflow.go), un bloc ici n'aurait aucun effet. Ce dossier .gitea/workflows fait ignorer .github/workflows par Gitea : data-refresh.yml et pages.yml (ainsi que junie-review.yml) restent pour l'instant réservés à GitHub et seront portés plus tard. .github/workflows/ci.yml reste en place pour GitHub, où data-refresh.yml le déclenche (`gh workflow run ci.yml`). Co-Authored-By: Claude Opus 5.5 (1M context) --- .gitea/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..9779584 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +# Gitea port of .github/workflows/ci.yml, through the organisation's shared workflow +# (avalon-vanguard/ci, node.yml): lint, typecheck, unit tests, production build, then the +# Playwright suite. Same triggers: pull requests and the branches they merge into, plus manual +# dispatch. +# +# A .gitea/workflows directory makes Gitea ignore .github/workflows, so pages.yml, +# data-refresh.yml and junie-review.yml now run on GitHub only, until they are ported. +on: + push: + branches: [main, develop] + pull_request: + workflow_dispatch: + +# A second push to the same branch makes the first run's answer irrelevant. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + ci: + uses: avalon-vanguard/ci/.gitea/workflows/node.yml@v1 + with: + e2e: true + secrets: inherit