removed docker_restart and instead do it all in build and run and check docker compose stuff in ci w/ burnettk
This commit is contained in:
parent
3c2ea5f686
commit
fcbb9cfbb7
|
@ -170,6 +170,21 @@ jobs:
|
|||
name: logs-${{matrix.python}}-${{matrix.os}}-${{matrix.database}}
|
||||
path: "./log/*.log"
|
||||
|
||||
check_docker_start_script:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out the repository
|
||||
uses: actions/checkout@v3.0.2
|
||||
with:
|
||||
# Disabling shallow clone is recommended for improving relevancy of reporting in sonarcloud
|
||||
fetch-depth: 0
|
||||
- name: start_backend
|
||||
run: ./bin/build_and_run_with_docker_compose
|
||||
env:
|
||||
SPIFFWORKFLOW_BACKEND_LOAD_FIXTURE_DATA: "true"
|
||||
- name: wait_for_backend
|
||||
run: ./bin/wait_for_server_to_be_up 5
|
||||
|
||||
coverage:
|
||||
runs-on: ubuntu-latest
|
||||
needs: tests
|
||||
|
|
|
@ -17,4 +17,6 @@ if [[ "${RUN_WITH_DAEMON:-}" != "false" ]]; then
|
|||
additional_args="${additional_args} -d"
|
||||
fi
|
||||
|
||||
docker compose up --wait --build $additional_args
|
||||
docker compose build
|
||||
docker compose stop
|
||||
docker compose up --wait $additional_args
|
||||
|
|
|
@ -28,5 +28,5 @@ if [[ -z "${SPIFFWORKFLOW_BACKEND_DATABASE_DOCKER_RESTART_POLICY:-}" ]]; then
|
|||
fi
|
||||
|
||||
git pull
|
||||
./bin/docker_restart
|
||||
./bin/build_and_run_with_docker_compose
|
||||
./bin/wait_for_server_to_be_up
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
function error_handler() {
|
||||
>&2 echo "Exited with BAD EXIT CODE '${2}' in ${0} script at line: ${1}."
|
||||
exit "$2"
|
||||
}
|
||||
trap 'error_handler ${LINENO} $?' ERR
|
||||
set -o errtrace -o errexit -o nounset -o pipefail
|
||||
|
||||
BPMN_SPEC_ABSOLUTE_DIR=../sample-process-models docker compose stop
|
||||
./bin/build_and_run_with_docker_compose
|
Loading…
Reference in New Issue