From a23b4ebd602ce0a1961aca6e10a5d6896785cd83 Mon Sep 17 00:00:00 2001 From: Azmog <80716388+AzmogEx@users.noreply.github.com> Date: Thu, 3 Sep 2026 18:38:52 +0200 Subject: [PATCH] test: break test intentionally to check CI block --- .gitea/workflows/ci.yml | 12 ++++++++++++ backend/tests/Unit/ExampleTest.php | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) 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); } }