From dc4e3820c436e0d4a891f7a9ab8301c0155e623f Mon Sep 17 00:00:00 2001 From: Johan LEROY Date: Wed, 13 May 2026 16:12:56 +0200 Subject: [PATCH] ci: add Gitea Actions tests workflow (check + vitest + build) 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) --- .gitea/workflows/test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .gitea/workflows/test.yml diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..c5169ce --- /dev/null +++ b/.gitea/workflows/test.yml @@ -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