From 3c4d9ec02a7510ab5c7a8c2b7070ac0e672a0e6c Mon Sep 17 00:00:00 2001 From: LathanDevers Date: Mon, 3 Aug 2026 15:40:08 +0200 Subject: [PATCH] build: migration de la CI vers pnpm --- .env | 0 .env.example | 1 + .gitea/workflows/deploy-environments.yml | 12 ++++++++++-- .gitea/workflows/quality-checks.yml | 15 +++++++++------ 4 files changed, 20 insertions(+), 8 deletions(-) delete mode 100644 .env create mode 100644 .env.example diff --git a/.env b/.env deleted file mode 100644 index e69de29..0000000 diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..984aa81 --- /dev/null +++ b/.env.example @@ -0,0 +1 @@ +VITE_PB_URL= \ No newline at end of file diff --git a/.gitea/workflows/deploy-environments.yml b/.gitea/workflows/deploy-environments.yml index 5e61411..9136519 100644 --- a/.gitea/workflows/deploy-environments.yml +++ b/.gitea/workflows/deploy-environments.yml @@ -30,13 +30,21 @@ jobs: with: node-version: 22 + - name: Configuration de Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + + - name: Activation de pnpm + run: corepack enable pnpm + - name: Installation des dépendances - run: npm ci + run: pnpm install --frozen-lockfile - name: Compilation de la Build env: VITE_APP_ENV: ${{ github.ref_name }} - run: npm run build + run: pnpm run build - name: Installation de lftp run: sudo apt-get update && sudo apt-get install -y lftp diff --git a/.gitea/workflows/quality-checks.yml b/.gitea/workflows/quality-checks.yml index 150e854..1e9e4c1 100644 --- a/.gitea/workflows/quality-checks.yml +++ b/.gitea/workflows/quality-checks.yml @@ -35,25 +35,28 @@ jobs: with: node-version: 22 + - name: Activation de pnpm + run: corepack enable pnpm + - name: Installation des dépendances - run: npm ci + run: pnpm install --frozen-lockfile # Étape 1 : ESLint (Syntaxe et conventions) - name: Analyse Linter (ESLint) - run: npm run lint + run: pnpm run lint # Étape 2 : Verification stricte des types TypeScript (sans émettre de fichiers) - name: Verification des Types TypeScript - run: npx tsc --noEmit + run: pnpm exec tsc --noEmit # Étape 3 : Exécution des tests unitaires - name: Tests Unitaires (Vitest) - run: npm run test -- --run + run: pnpm run test -- --run # Étape 4 : Audit des vulnérabilités npm (Niveau High/Critical) - name: Audit de Sécurité des Dépendances - run: npm audit --audit-level=high + run: pnpm audit --audit-level=high # Étape 5 : Validation de la compilation ViteJS - name: Validation du Build de Production - run: npm run build \ No newline at end of file + run: pnpm run build \ No newline at end of file