3
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2026-01-17 01:46:28 +00:00
checkout/.github/workflows/ci.yaml
2026-01-05 14:22:30 +01:00

35 lines
809 B
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: CI Pipeline
# Déclenche la pipeline à chaque PR et push sur master
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
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