Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 091e2d320f | |||
| a6c51b7e72 | |||
| b821b45904 |
@@ -0,0 +1,79 @@
|
|||||||
|
name: 🚀 Release - TP5
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags: [ 'v*' ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: 📥 Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: 🐳 Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: 🧪 Run tests before release
|
||||||
|
run: |
|
||||||
|
echo "Validation des tests avant release..."
|
||||||
|
docker compose up -d db backend
|
||||||
|
sleep 15
|
||||||
|
docker compose --profile test up --build --abort-on-container-exit test
|
||||||
|
|
||||||
|
- name: 📊 Show test results
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
echo "Résultats des tests:"
|
||||||
|
docker compose --profile test logs test
|
||||||
|
|
||||||
|
- name: 🧹 Cleanup
|
||||||
|
if: always()
|
||||||
|
run: |
|
||||||
|
docker compose --profile test down -v
|
||||||
|
docker system prune -f
|
||||||
|
|
||||||
|
- name: 📝 Create Release Notes
|
||||||
|
id: release_notes
|
||||||
|
run: |
|
||||||
|
echo "notes<<EOF" >> $GITHUB_OUTPUT
|
||||||
|
echo "## 🎉 Release ${{ github.ref_name }}" >> $GITHUB_OUTPUT
|
||||||
|
echo "" >> $GITHUB_OUTPUT
|
||||||
|
echo "### Fonctionnalités principales" >> $GITHUB_OUTPUT
|
||||||
|
echo "- Système complet de réservation de salles" >> $GITHUB_OUTPUT
|
||||||
|
echo "- Interface de planning visuel avec grille horaire" >> $GITHUB_OUTPUT
|
||||||
|
echo "- Tests automatisés avec Pytest et GitHub Actions" >> $GITHUB_OUTPUT
|
||||||
|
echo "- Configuration Docker Compose multi-services" >> $GITHUB_OUTPUT
|
||||||
|
echo "- 5 salles pré-configurées" >> $GITHUB_OUTPUT
|
||||||
|
echo "- Documentation complète" >> $GITHUB_OUTPUT
|
||||||
|
echo "" >> $GITHUB_OUTPUT
|
||||||
|
echo "### Installation" >> $GITHUB_OUTPUT
|
||||||
|
echo "\`\`\`bash" >> $GITHUB_OUTPUT
|
||||||
|
echo "git clone https://github.com/SarTron-NorthBlue/dockezr.git" >> $GITHUB_OUTPUT
|
||||||
|
echo "cd dockezr" >> $GITHUB_OUTPUT
|
||||||
|
echo "docker-compose up -d" >> $GITHUB_OUTPUT
|
||||||
|
echo "\`\`\`" >> $GITHUB_OUTPUT
|
||||||
|
echo "" >> $GITHUB_OUTPUT
|
||||||
|
echo "### Accès" >> $GITHUB_OUTPUT
|
||||||
|
echo "- Frontend: http://localhost:3000" >> $GITHUB_OUTPUT
|
||||||
|
echo "- Backend API: http://localhost:8000" >> $GITHUB_OUTPUT
|
||||||
|
echo "- Documentation API: http://localhost:8000/docs" >> $GITHUB_OUTPUT
|
||||||
|
echo "" >> $GITHUB_OUTPUT
|
||||||
|
echo "Voir [CHANGELOG.md](CHANGELOG.md) pour plus de détails." >> $GITHUB_OUTPUT
|
||||||
|
echo "EOF" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: 🏷️ Create GitHub Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
tag_name: ${{ github.ref_name }}
|
||||||
|
name: Release ${{ github.ref_name }}
|
||||||
|
body: ${{ steps.release_notes.outputs.notes }}
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -3,6 +3,7 @@ name: 🧪 Tests API - TP4
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main, develop ]
|
branches: [ main, develop ]
|
||||||
|
tags: [ 'v*' ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -74,10 +74,10 @@ et ce projet adhère au [Semantic Versioning](https://semver.org/lang/fr/).
|
|||||||
5. **Salle Digital** (20 personnes) - 20 postes informatiques, Vidéoprojecteur, WiFi
|
5. **Salle Digital** (20 personnes) - 20 postes informatiques, Vidéoprojecteur, WiFi
|
||||||
|
|
||||||
### Scripts d'administration
|
### Scripts d'administration
|
||||||
|
- `scripts/start.bat` - Démarrage de l'application
|
||||||
|
- `scripts/stop.bat` - Arrêt de l'application
|
||||||
- `scripts/test.bat` - Exécution des tests automatisés
|
- `scripts/test.bat` - Exécution des tests automatisés
|
||||||
- `scripts/test-connectivity.bat` - Tests de simulation d'erreur
|
- `scripts/test-connectivity.bat` - Tests de simulation d'erreur
|
||||||
- `start.bat` - Démarrage de l'application
|
|
||||||
- `stop.bat` - Arrêt de l'application
|
|
||||||
|
|
||||||
### Documentation
|
### Documentation
|
||||||
- Guide d'utilisation complet
|
- Guide d'utilisation complet
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ docker-compose up -d
|
|||||||
|
|
||||||
ou utilisez le script Windows :
|
ou utilisez le script Windows :
|
||||||
```bash
|
```bash
|
||||||
start.bat
|
scripts/start.bat
|
||||||
```
|
```
|
||||||
|
|
||||||
Cette commande va :
|
Cette commande va :
|
||||||
@@ -120,6 +120,11 @@ docker-compose up -d
|
|||||||
docker-compose down
|
docker-compose down
|
||||||
```
|
```
|
||||||
|
|
||||||
|
ou utilisez le script Windows :
|
||||||
|
```bash
|
||||||
|
scripts/stop.bat
|
||||||
|
```
|
||||||
|
|
||||||
### Voir les logs
|
### Voir les logs
|
||||||
```bash
|
```bash
|
||||||
# Tous les services
|
# Tous les services
|
||||||
|
|||||||
Reference in New Issue
Block a user