docs(files): Ajout des fichiers obligatoire (Fixes #20) #1
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 required files | |
| on: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| jobs: | |
| check-files: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Check required files | |
| run: | | |
| REQUIRED_FILES=( | |
| "README.md" | |
| "INSTALL.md" | |
| "CHANGELOG.md" | |
| "CONTRIBUTING.md" | |
| "LICENSE" | |
| ".env.example" | |
| "SECURITY.md" | |
| "CODE_OF_CONDUCT.md" | |
| "requirements.txt" | |
| ) | |
| MISSING=0 | |
| echo "🔍 Checking required files..." | |
| for file in "${REQUIRED_FILES[@]}"; do | |
| if [ ! -f "$file" ]; then | |
| echo "❌ Missing file: $file" | |
| MISSING=1 | |
| else | |
| echo "✅ Found: $file" | |
| fi | |
| done | |
| if [ $MISSING -ne 0 ]; then | |
| echo "" | |
| echo "🚨 One or more required files are missing." | |
| exit 1 | |
| fi | |
| echo "" | |
| echo "🎉 All required files are present!" |