Skip to content

Commit

Permalink
chore(ci): check page after starting server
Browse files Browse the repository at this point in the history
  • Loading branch information
joseferben committed Jul 12, 2024
1 parent 718d18e commit be3d90c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,15 @@ jobs:
pnpm build
pnpm test
pnpm check
- name: start server and check response 🌐
run: |
cd my-plainweb-project
pnpm start &
sleep 5 # Wait for the server to start
if curl -s http://localhost:3000 | grep -q "Let's go"; then
echo "Server started successfully and contains 'Let's go'"
else
echo "Server check failed"
exit 1
fi
kill $! # Stop the server

0 comments on commit be3d90c

Please sign in to comment.