gitea action test
Some checks failed
Deploy App / build (push) Successful in 47s
Deploy App / test (push) Failing after 54s
Deploy App / deploy (push) Has been skipped

This commit is contained in:
valere
2025-09-18 10:27:03 +02:00
parent 655574171f
commit e76b009629

View File

@@ -29,14 +29,20 @@ jobs:
with:
node-version: 20
- run: npm install -g pnpm
# installer pnpm et wait-on globalement
- run: |
npm install -g pnpm wait-on
# install uniquement les prod deps
# installer uniquement les deps prod
- run: pnpm install --frozen-lockfile --prod
# démarrer le serveur et tester une route
# démarrer le serveur en arrière-plan
- run: pnpm start &
- run: npx wait-on http://localhost:3000
# 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
deploy: