fix(demo): move step_1 success tracking after the frontend auth (#1961) #152
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Check | |
on: | |
push: | |
branches: | |
- master | |
- staging/** | |
pull_request: | |
concurrency: | |
group: docker-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
docker_check_job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Build the docker-compose stack | |
run: docker compose -f ./packages/cli/docker/docker-compose.yaml --project-directory . up -d | |
- name: Sleep | |
uses: jakejarvis/wait-action@master | |
with: | |
time: '30s' | |
- name: Verify containers | |
run: | | |
CONTAINER_NAME=nango-server | |
SERVER=$(docker ps -q -f status=running -f name=^/${CONTAINER_NAME}$) | |
if [ ! "${SERVER}" ]; then | |
echo "Server container doesn't exist" | |
exit 1 | |
fi | |
CONTAINER_NAME=nango-db | |
DB=$(docker ps -q -f status=running -f name=^/${CONTAINER_NAME}$) | |
if [ ! "${DB}" ]; then | |
echo "DB container doesn't exist" | |
exit 1 | |
fi | |
CONTAINER_NAME=nango-jobs | |
JOBS=$(docker ps -q -f status=running -f name=^/${CONTAINER_NAME}$) | |
if [ ! "${JOBS}" ]; then | |
echo "Jobs container doesn't exist" | |
exit 1 | |
fi | |
shell: bash |