From 9c9688a4ea2f0caa93b5a594cc95093c7f2d110e Mon Sep 17 00:00:00 2001 From: valere Date: Thu, 18 Sep 2025 10:32:30 +0200 Subject: [PATCH] gitea action test --- .github/workflows/deploy.yml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3c358a8..2870a63 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,21 +29,12 @@ jobs: with: node-version: 20 - # installer pnpm et wait-on globalement - - run: | - npm install -g pnpm wait-on - - # installer uniquement les deps prod + - run: npm install -g pnpm wait-on - run: pnpm install --frozen-lockfile --prod - - # démarrer le serveur en arrière-plan - - run: pnpm start & - - # attendre que le serveur soit dispo (max 15s) - - run: wait-on http://localhost:3000 --timeout 15000 - - # vérifier la route principale - - run: curl -f http://localhost:3000 || exit 1 + - run: pnpm start > server.log 2>&1 & + - run: tail -n 20 server.log + - run: wait-on http://localhost:3000 --timeout 60000 + - run: curl -f http://localhost:3000 || (cat server.log && exit 1) deploy: runs-on: ubuntu-22.04