ci: add Gitea Actions tests workflow (check + vitest + build)
Some checks failed
Tests / test (push) Has been cancelled

Tourne sur push main/dev et pull_request. Runner node:22-bullseye.
Pas de deploy automatique : l'upload FTP reste manuel.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Johan LEROY
2026-05-13 16:12:56 +02:00
parent 7327959e9e
commit 88ac8870f4

26
.gitea/workflows/test.yml Normal file
View File

@@ -0,0 +1,26 @@
name: Tests
on:
push:
branches: [main, dev]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
container:
image: node:22-bullseye
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: npm ci --no-audit --no-fund
- name: Astro check (types + lint hints)
run: npm run check
- name: Vitest
run: npm test
- name: Astro build (vérifie que le build prod passe)
run: npm run build