3
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2026-01-13 23:26:16 +00:00
This commit is contained in:
lFesselier 2026-01-10 01:41:19 +05:30 committed by GitHub
commit 394f89fcc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 36 additions and 0 deletions

35
.github/workflows/ci.yaml vendored Normal file
View file

@ -0,0 +1,35 @@
name: CI Pipeline
# Déclenche la pipeline à chaque PR et push sur main
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# 1⃣ Checkout du repo
- name: Checkout repository
uses: actions/checkout@v4
# 2⃣ Installer Node.js selon .nvmrc
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
# 3⃣ Installer les dépendances de manière reproductible
- name: Install dependencies
run: npm ci
# 4⃣ Lancer les tests unitaires
- name: Run unit tests
run: npm test
# 5⃣ Linter le code
- name: Lint code
run: npm run lint

1
.nvmrc Normal file
View file

@ -0,0 +1 @@
24