feat(dashboard): Fixes #138 - Dashboard membres et teams #126
This file contains hidden or 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: 'Check Project Structure' | |
| on: | |
| pull_request: | |
| types: [opened, edited, synchronize] | |
| jobs: | |
| check-structure: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout PR' | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 1 | |
| - name: 'Verify project structure' | |
| run: | | |
| echo "🔍 Vérification de la structure du projet" | |
| INVALID=false | |
| # Fichiers racine obligatoires | |
| ROOT_FILES=("README.md" "CONTRIBUTING.md" "INSTALL.md" "LICENSE") | |
| for FILE in "${ROOT_FILES[@]}"; do | |
| if [ ! -f "$FILE" ]; then | |
| echo "❌ Fichier racine manquant : $FILE" | |
| INVALID=true | |
| else | |
| echo "✅ Fichier trouvé : $FILE" | |
| fi | |
| done | |
| # Dossiers obligatoires | |
| DIRS=("saintBarthVolleyApp/frontend" "saintBarthVolleyApp/backend") | |
| for DIR in "${DIRS[@]}"; do | |
| if [ ! -d "$DIR" ]; then | |
| echo "❌ Dossier manquant : $DIR" | |
| INVALID=true | |
| else | |
| echo "✅ Dossier trouvé : $DIR" | |
| fi | |
| done | |
| # Vérification interne frontend | |
| if [ -d "saintBarthVolleyApp/frontend" ]; then | |
| if [ ! -f "saintBarthVolleyApp/frontend/package.json" ]; then | |
| echo "❌ Fichier manquant dans frontend : package.json" | |
| INVALID=true | |
| fi | |
| fi | |
| # Vérification interne backend | |
| if [ -d "saintBarthVolleyApp/backend" ]; then | |
| if [ ! -f "saintBarthVolleyApp/backend/package.json" ]; then | |
| echo "❌ Fichier manquant dans backend : package.json" | |
| INVALID=true | |
| fi | |
| fi | |
| # Blocage si structure incorrecte | |
| if [ "$INVALID" = true ]; then | |
| echo "" | |
| echo "⚠️ Structure du projet invalide. Veuillez ajouter les fichiers/dossiers manquants." | |
| exit 1 | |
| else | |
| echo "✅ Structure du projet OK" | |
| fi |