Skip to content

Commit

Permalink
Added e2e tests GH action, with docker compose build - debugging action
Browse files Browse the repository at this point in the history
  • Loading branch information
dividor committed Jul 1, 2024
1 parent 5779c1e commit 4a5e66d
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/e2e_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,21 @@ jobs:
USER_LOGIN: ${{ secrets.USER_LOGIN }}
USER_PASSWORD: ${{ secrets.USER_PASSWORD }}

services:
datadb:
image: postgres:latest
env:
POSTGRES_DB: datadb
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
# services:
# datadb:
# image: postgres:latest
# env:
# POSTGRES_DB: datadb
# POSTGRES_PASSWORD: postgres
# POSTGRES_USER: postgres
# ports:
# - 5432:5432
# # Set health checks to wait until postgres has started
# options: >-
# --health-cmd pg_isready
# --health-interval 10s
# --health-timeout 5s
# --health-retries 5

steps:

Expand Down Expand Up @@ -105,13 +105,13 @@ jobs:
export DATA_DB_CONN_STRING="postgresql://${POSTGRES_DATA_USER}:${POSTGRES_DATA_PASSWORD}@${POSTGRES_DATA_HOST}:${POSTGRES_DATA_PORT}/${POSTGRES_DATA_DB}"
export POSTGRES_RECIPE_CONN_STRING="postgresql://${POSTGRES_RECIPE_USER}:${POSTGRES_RECIPE_PASSWORD}@${POSTGRES_RECIPE_HOST}:${POSTGRES_RECIPE_PORT}/${POSTGRES_RECIPE_DB}"
#docker buildx create --use --driver=docker-container
#docker buildx bake -f ./docker-compose-dev.yml --set *.cache-to="type=gha,mode=max" --set *.cache-from="type=gha" --load --set *.platform=linux/amd64
docker buildx create --use --driver=docker-container
docker buildx bake -f ./docker-compose-dev.yml --set *.cache-to="type=gha,mode=max" --set *.cache-from="type=gha" --load --set *.platform=linux/amd64
- name: Spin up services
run: |
docker-compose -f ./docker-compose-dev.yml up -d
docker-compose -f ./docker-compose-dev.yml up -d --no-build
echo "logs datadb ..."
docker-compose -f docker-compose-dev.yml logs datadb
Expand Down

0 comments on commit 4a5e66d

Please sign in to comment.