Skip to content

feat: add check aide cat nat to simulateur #979

feat: add check aide cat nat to simulateur

feat: add check aide cat nat to simulateur #979

Workflow file for this run

name: CI
on:
push:
branches: ["**"]
pull_request:
branches: [main, dev]
jobs:
security:
name: Security Checks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Detect secrets with Talisman
run: |
# Télécharger et installer Talisman
curl -L https://github.com/thoughtworks/talisman/releases/latest/download/talisman_linux_amd64 -o talisman
chmod +x talisman
# Scanner le code
./talisman --githook pre-commit || (echo "::error::Secrets detected in code" && exit 1)
ci:
name: Test, Lint & Build
runs-on: ubuntu-latest
needs: security
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".node-version"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run TypeScript checks
run: pnpm typecheck
- name: Run ESLint
run: pnpm lint
- name: Run tests
run: pnpm test
env:
# Variables d'environnement pour les tests
NODE_ENV: test
DB_HOST: "localhost"
DB_PORT: "5432"
DB_USER: "fonds_argile_user"
DB_PASSWORD: "fonds_argile_password"
DB_NAME: "fonds_argile"
- name: Build application
run: pnpm build
env:
# Variables d'environnement pour le build
NODE_ENV: production
NEXT_TELEMETRY_DISABLED: 1
NEXT_PUBLIC_DEMARCHES_SIMPLIFIEES_BASE_URL: https://www.demarches-simplifiees.fr
DEMARCHES_SIMPLIFIEES_GRAPHQL_API_KEY: "API_KEY_EXAMPLE"
DEMARCHES_SIMPLIFIEES_GRAPHQL_API_URL: https://www.demarches-simplifiees.fr/api/v2/graphql
DEMARCHES_SIMPLIFIEES_REST_API_URL: https://www.demarches-simplifiees.fr/api/public/v1
DEMARCHES_SIMPLIFIEES_ID_ELIGIBILITE: "126061"
DEMARCHES_SIMPLIFIEES_NOM_ELIGIBILITE: "xxxxx-xxx-xxx-xxx"
DEMARCHES_SIMPLIFIEES_ID_DIAGNOSTIC: "126062"
DEMARCHES_SIMPLIFIEES_NOM_DIAGNOSTIC: "xxxxx-xxx-xxx-xxx"
DEMARCHES_SIMPLIFIEES_ID_DEVIS: "126063"
DEMARCHES_SIMPLIFIEES_NOM_DEVIS: "xxxxx-xxx-xxx-xxx"
DEMARCHES_SIMPLIFIEES_ID_FACTURES: "126064"
DEMARCHES_SIMPLIFIEES_NOM_FACTURES: "xxxxx-xxx-xxx-xxx"
JWT_SECRET: "supersecretkeywithmorethan32characters"
FC_CLIENT_ID: "exampleclientid"
FC_CLIENT_SECRET: "exampleclientsecret"
FC_CALLBACK_URL: "http://localhost:3000/api/auth/callback"
FC_POST_LOGOUT_URL: "http://localhost:3000/"
FC_BASE_URL: "https://app.franceconnect.gouv.fr"
FC_SCOPES: "openid email profile"
FC_ACR_VALUES: "eidas1"
FC_STATE_TTL: "300"
BASE_URL: "http://localhost:3000"
DB_HOST: "localhost"
DB_PORT: "5432"
DB_USER: "fonds_argile_user"
DB_PASSWORD: "fonds_argile_password"
DB_NAME: "fonds_argile"
BREVO_API_KEY: "BREVO_API_KEY_EXAMPLE"
BREVO_WEBHOOK_SECRET: "BREVO_WEBHOOK_SECRET_EXAMPLE_1234567890abcdef"
EMAIL_FROM: "noreply@fonds-argile.local"
MATOMO_API_TOKEN: "MATOMO_API_TOKEN_EXAMPLE"
NEXT_PUBLIC_MATOMO_URL: "https://stats.beta.gouv.fr"
NEXT_PUBLIC_MATOMO_FUNNEL_ID: "1"
NEXT_PUBLIC_MATOMO_SITE_ID: "111"
RGA_ENCRYPTION_KEY: "12345678901234567890123456789012"
PC_CLIENT_ID: "proconnectclientid"
PC_CLIENT_SECRET: "proconnectclientsecret"
PC_CALLBACK_URL: "http://localhost:3000/api/proconnect/callback"
PC_POST_LOGOUT_URL: "http://localhost:3000/"
PC_BASE_URL: "https://proconnect.gouv.fr"
PC_SCOPES: "openid email"
PC_ACR_VALUES: "eidas1"
PC_STATE_TTL: "300"