Skip to content

Commit

Permalink
Add basic verify step
Browse files Browse the repository at this point in the history
  • Loading branch information
parberge committed Sep 26, 2023
1 parent 47c9e49 commit e9caae2
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,19 @@ jobs:
- uses: actions/checkout@v1
- run: |
cp .env-example .env
docker compose up --build
docker compose up --build -d
- name: Make sure we frontend responds
run: |
SUCCESS=0
for try in {1..3}; do
status_code=$(curl --write-out %{http_code} --silent --output /dev/null http://localhost:3000)
if [[ "$status_code" -eq 200 ]] ; then
SUCCESS=1
break
else
echo "Attempt $try failed with status code $status_code"
fi
sleep 1
done

0 comments on commit e9caae2

Please sign in to comment.