Skip to content

Commit

Permalink
ci: enable backend smoketest using compose --wait
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Oct 19, 2023
1 parent 65acea7 commit d0fb4c6
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,37 +67,7 @@ jobs:
- name: Backend smoke test
run: |
echo "Not implemented"
# source .env
# docker network create fmtm
# docker pull "postgis/postgis:14-3.3-alpine"
# docker run --rm -d \
# --name=fmtm-db \
# --network=fmtm \
# -e POSTGRES_USER=fmtm \
# -e POSTGRES_PASSWORD=fmtm \
# -e POSTGRES_DB=fmtm \
# "postgis/postgis:14-3.3-alpine"
# docker pull "ghcr.io/hotosm/fmtm/backend:${GIT_BRANCH}"
# docker run --rm -d \
# --network=fmtm \
# -p 8080:8080 \
# -e OSM_CLIENT_ID="test" \
# -e OSM_CLIENT_SECRET="test" \
# -e OSM_SECRET_KEY="test" \
# -e S3_ACCESS_KEY="fmtm" \
# -e S3_SECRET_KEY="somelongpassword" \
# "ghcr.io/hotosm/fmtm/backend:${GIT_BRANCH}"
# # First wait 10 seconds for API
# sleep 10
# # Check the exit status of curl and exit the job if it fails
# if ! curl -f http://localhost:8080/docs; then
# echo "curl failed to access http://localhost:8080/docs"
# exit 1
# fi
docker compose up -d api --wait --wait-timeout 60
smoke-test-frontend:
runs-on: ubuntu-latest
Expand Down

0 comments on commit d0fb4c6

Please sign in to comment.