correctif du chemin workflow
This commit is contained in:
34
.gitea/workflows/ci.yaml
Normal file
34
.gitea/workflows/ci.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Docker Build Check
|
||||
|
||||
# Déclencheur pour chaque pull request
|
||||
on:
|
||||
push:
|
||||
branches: ['**']
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
# 1. Checkout du code source du dépôt
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# 2. Installation Node.js
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22.18' # Spécifie la version de Node.js
|
||||
|
||||
# 3. Installation des dépendances
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
# 4. Exécution des tests unitaires
|
||||
- name: Run tests
|
||||
run: npm run test:ci
|
||||
|
||||
# 5. CI terminée
|
||||
- name: CI completed
|
||||
run: echo "✅CI process completed successfully.✅"
|
||||
Reference in New Issue
Block a user