Skip to content

fix Arkaans Copilot #77

fix Arkaans Copilot

fix Arkaans Copilot #77

Workflow file for this run

name: Development CI (Continuous Integration)
on:
push:
branches: ["dev"]
workflow_dispatch: # Permet de déclencher manuellement le workflow via l'interface GitHub
permissions:
contents: read
concurrency:
group: "pages" # Groupe de concurrence pour éviter des exécutions multiples en même temps
cancel-in-progress: false
jobs:
security-and-tests:
runs-on: ubuntu-latest # Exécute le workflow sur la dernière version d'Ubuntu
steps:
- name: Checkout code
uses: actions/checkout@v4 # Récupère le code source du dépôt
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: npm install
- name: ESLint
run: npm run lint
- name: Depencies audit
run: npm audit --audit-level=moderate
# - name: Run Unit Tests
# run: npx jest --coverage # (commenté) Exécute les tests unitaires avec Jest et génère un rapport de couverture
- name: Build application
run: npm run build # Compile l'application
env:
NEXT_PUBLIC_GITHUB_BEARER_TOKEN: ${{ secrets.NEXT_PUBLIC_GITHUB_BEARER_TOKEN }}
NEXT_PUBLIC_APIKEY: ${{ secrets.NEXT_PUBLIC_APIKEY }}
NEXT_PUBLIC_AUTHDOMAIN: ${{ secrets.NEXT_PUBLIC_AUTHDOMAIN }}
NEXT_PUBLIC_PROJECTID: ${{ secrets.NEXT_PUBLIC_PROJECTID }}
NEXT_PUBLIC_STORAGEBUCKET: ${{ secrets.NEXT_PUBLIC_STORAGEBUCKET }}
NEXT_PUBLIC_MESSAGINGSENDERID: ${{ secrets.NEXT_PUBLIC_MESSAGINGSENDERID }}
NEXT_PUBLIC_APPID: ${{ secrets.NEXT_PUBLIC_APPID }}
NEXT_PUBLIC_MEASUREMENTID: ${{ secrets.NEXT_PUBLIC_MEASUREMENTID }}
NEXT_PUBLIC_S3_BUCKET_URL: ${{ secrets.NEXT_PUBLIC_S3_BUCKET_URL }}
NEXT_PUBLIC_S3_CV_URL: ${{ secrets.NEXT_PUBLIC_S3_CV_URL }}
NEXT_PUBLIC_GMAIL_USER: ${{ secrets.NEXT_PUBLIC_GMAIL_USER }}
NEXT_PUBLIC_GMAIL_PASSWORD: ${{ secrets.NEXT_PUBLIC_GMAIL_PASSWORD }}
NEXT_PUBLIC_PROTONMAIL_USER: ${{ secrets.NEXT_PUBLIC_PROTONMAIL_PASSWORD }}