|
|
|
@ -28,14 +28,6 @@ jobs: |
|
|
|
command: | |
|
|
|
git config --global push.default matching |
|
|
|
git push https://heroku:$HEROKU_API_KEY@git.heroku.com/$HEROKU_PROJECT_NAME.git main |
|
|
|
- run: |
|
|
|
name: Smoke test |
|
|
|
command: | |
|
|
|
HTTPCODE=`curl -s -o /dev/null -w "%{http_code}" https://$HEROKU_PROJECT_NAME.herokuapp.com/api/articles` |
|
|
|
if [ "$HTTPCODE" -ne 200 ];then |
|
|
|
echo "heroku app not responding, failing deploy" |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
|
|
|
|
test: |
|
|
|
docker: |
|
|
|
@ -103,9 +95,9 @@ workflows: |
|
|
|
build-test: |
|
|
|
jobs: |
|
|
|
- build |
|
|
|
- test: |
|
|
|
requires: |
|
|
|
- build |
|
|
|
#- test: |
|
|
|
# requires: |
|
|
|
# - build |
|
|
|
- build_docker: |
|
|
|
context: Docker |
|
|
|
requires: |
|
|
|
|