diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c69f0ec..c7074cb 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -89,3 +89,15 @@ jobs: - run: npm ci --legacy-peer-deps - name: Tests unitaires run: npm test + + # ── Déploiement Continu : Déclenché uniquement si les tests passent ── + deploy: + name: Déploiement · Coolify + needs: [backend, frontend, mobile] + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/main' + steps: + - name: Lancer le déploiement sur Coolify + run: | + echo "Les tests sont verts, on déploie sur Coolify..." + curl -X GET -H "Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}" "https://panel.cleanows.fr/api/v1/deploy?uuid=jkmklx2dsb03yy1l2mps01ep&force=false" diff --git a/backend/tests/Unit/ExampleTest.php b/backend/tests/Unit/ExampleTest.php index 5773b0c..cb786f3 100644 --- a/backend/tests/Unit/ExampleTest.php +++ b/backend/tests/Unit/ExampleTest.php @@ -11,6 +11,6 @@ class ExampleTest extends TestCase */ public function test_that_true_is_true(): void { - $this->assertTrue(true); + $this->assertTrue(false); } }