Create blank.yml #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI/CD Pipeline | |
on: | |
push: | |
branches: | |
- "*" # Déclenche le workflow à chaque push sur les branches | |
pull_request: | |
branches: | |
- "main" | |
jobs: | |
build: | |
runs-on: ubuntu-latest # Utilise une machine Ubuntu pour l'exécution du workflow | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 # Action pour récupérer le code du dépôt | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 # Action pour configurer Node.js | |
with: | |
node-version: "14" # Version de Node.js à utiliser | |
- name: Install dependencies | |
run: npm install # Installation des dépendances du projet | |
- name: Run tests | |
run: npm test # Exécution des tests | |