Skip to content

Commit

Permalink
ci: add simple smoke test to frontend deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Jan 23, 2024
1 parent 749431f commit 67a099f
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,18 @@ jobs:
uses: actions/checkout@v4

- name: Frontend smoke test
run: echo "Not implemented"
run: |
if docker compose up --detach \
--no-deps --wait --wait-timeout 30 \
ui
then
docker compose logs api
curl --fail http://localhost:7051 || exit 1
else
echo "Application not healthy after 30s. Exiting."
docker compose logs api
exit 1
fi
deploy-containers:
needs:
Expand Down

0 comments on commit 67a099f

Please sign in to comment.