Files
star-map/.gitea/workflows/ci.yml
T
SenrokaiandClaude Opus 5.5 7983a6875f CI Gitea : .gitea/workflows/ci.yml appelle avalon-vanguard/ci node.yml@v1
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) <noreply@anthropic.com>
2026-10-01 17:30:19 +02:00

27 lines
828 B
YAML

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