diff --git a/.github/workflows/run-test.yml b/.github/workflows/run-test.yml index f6b62639..54e70912 100644 --- a/.github/workflows/run-test.yml +++ b/.github/workflows/run-test.yml @@ -1,24 +1,24 @@ -name: run-test +# name: run-test -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch -on: [push, pull_request ] +# # Controls when the action will run. Triggers the workflow on push or pull request +# # events but only for the master branch +# on: [push, pull_request ] -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build n lint" - build-n-test: - # The type of runner that the job will run on - runs-on: ubuntu-latest +# # A workflow run is made up of one or more jobs that can run sequentially or in parallel +# jobs: +# # This workflow contains a single job called "build n lint" +# build-n-test: +# # The type of runner that the job will run on +# runs-on: ubuntu-latest - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - name: Start dependancies - working-directory: ./docker - run: docker compose -f docker-compose-staging.yml up -d - - name: Run tests - working-directory: ./docker - run: docker compose -f docker-compose-staging.yml run vachan-api-test \ No newline at end of file +# # Steps represent a sequence of tasks that will be executed as part of the job +# steps: +# # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it +# - uses: actions/checkout@v2 +# - name: Start dependancies +# working-directory: ./docker +# run: docker compose -f docker-compose-staging.yml up -d +# - name: Run tests +# working-directory: ./docker +# run: docker compose -f docker-compose-staging.yml run vachan-api-test \ No newline at end of file diff --git a/docker/docker-compose-production.yml b/docker/docker-compose-production.yml index 68cfdba3..93aa6720 100644 --- a/docker/docker-compose-production.yml +++ b/docker/docker-compose-production.yml @@ -141,45 +141,45 @@ services: networks: - VE-network - vachan-api-test: - build: - context: ../ - dockerfile: ./docker/Dockerfile - healthcheck: - timeout: 45s - interval: 10s - retries: 10 - environment: - - VACHAN_POSTGRES_HOST=vachan-db - - VACHAN_POSTGRES_USER=${VACHAN_POSTGRES_USER:-postgres} - - VACHAN_POSTGRES_PASSWORD=${VACHAN_POSTGRES_PASSWORD:-password} - - VACHAN_POSTGRES_DATABASE=${VACHAN_POSTGRES_DATABASE:-vachan_dev} - - VACHAN_POSTGRES_PORT=5432 - - VACHAN_KRATOS_PUBLIC_URL=http://kratos:4433/ - - VACHAN_KRATOS_ADMIN_URL=http://kratos:4434/ - - VACHAN_SUPER_USERNAME=${VACHAN_SUPER_USERNAME:-super@admin.com} - - VACHAN_GITLAB_TOKEN=${VACHAN_GITLAB_TOKEN} - - VACHAN_SUPER_PASSWORD=${VACHAN_SUPER_PASSWORD:-Just4Complexity!} - - VACHAN_TEST_MODE="False" - - VACHAN_LOGGING_LEVEL=INFO - - VACHAN_DOMAIN=${VACHAN_DOMAIN:-http://localhost:8000} - command: python -m pytest - volumes: - - logs-test-vol:/app/logs - restart: "no" - expose: - - 8000 - links: - - vachan-db - - kratos - depends_on: - - kratos-postgresd - - kratos - - vachan-db - profiles: - - testing - networks: - - VE-network +# vachan-api-test: +# build: +# context: ../ +# dockerfile: ./docker/Dockerfile +# healthcheck: +# timeout: 45s +# interval: 10s +# retries: 10 +# environment: +# - VACHAN_POSTGRES_HOST=vachan-db +# - VACHAN_POSTGRES_USER=${VACHAN_POSTGRES_USER:-postgres} +# - VACHAN_POSTGRES_PASSWORD=${VACHAN_POSTGRES_PASSWORD:-password} +# - VACHAN_POSTGRES_DATABASE=${VACHAN_POSTGRES_DATABASE:-vachan_dev} +# - VACHAN_POSTGRES_PORT=5432 +# - VACHAN_KRATOS_PUBLIC_URL=http://kratos:4433/ +# - VACHAN_KRATOS_ADMIN_URL=http://kratos:4434/ +# - VACHAN_SUPER_USERNAME=${VACHAN_SUPER_USERNAME:-super@admin.com} +# - VACHAN_GITLAB_TOKEN=${VACHAN_GITLAB_TOKEN} +# - VACHAN_SUPER_PASSWORD=${VACHAN_SUPER_PASSWORD:-Just4Complexity!} +# - VACHAN_TEST_MODE="False" +# - VACHAN_LOGGING_LEVEL=INFO +# - VACHAN_DOMAIN=${VACHAN_DOMAIN:-http://localhost:8000} +# command: python -m pytest +# volumes: +# - logs-test-vol:/app/logs +# restart: "no" +# expose: +# - 8000 +# links: +# - vachan-db +# - kratos +# depends_on: +# - kratos-postgresd +# - kratos +# - vachan-db +# profiles: +# - testing +# networks: +# - VE-network vachan-demos: image: vachanengine/vachan-demos:v2.0.0-alpha.13 diff --git a/docker/docker-compose-staging.yml b/docker/docker-compose-staging.yml index 0a23834d..16f9aa91 100644 --- a/docker/docker-compose-staging.yml +++ b/docker/docker-compose-staging.yml @@ -133,45 +133,45 @@ services: networks: - VE-network - vachan-api-test: - build: - context: ../ - dockerfile: ./docker/Dockerfile - healthcheck: - timeout: 45s - interval: 10s - retries: 10 - environment: - - VACHAN_POSTGRES_HOST=vachan-db - - VACHAN_POSTGRES_USER=${VACHAN_POSTGRES_USER:-postgres} - - VACHAN_POSTGRES_PASSWORD=${VACHAN_POSTGRES_PASSWORD:-password} - - VACHAN_POSTGRES_DATABASE=${VACHAN_POSTGRES_DATABASE:-vachan_dev} - - VACHAN_POSTGRES_PORT=5432 - - VACHAN_KRATOS_PUBLIC_URL=http://kratos:4433/ - - VACHAN_KRATOS_ADMIN_URL=http://kratos:4434/ - - VACHAN_SUPER_USERNAME=${VACHAN_SUPER_USERNAME:-super@admin.com} - - VACHAN_GITLAB_TOKEN=${VACHAN_GITLAB_TOKEN} - - VACHAN_SUPER_PASSWORD=${VACHAN_SUPER_PASSWORD:-Just4Complexity!} - - VACHAN_TEST_MODE="False" - - VACHAN_LOGGING_LEVEL=INFO - - VACHAN_DOMAIN=${VACHAN_DOMAIN:-http://localhost:8000} - command: python -m pytest - volumes: - - logs-test-vol:/app/logs - restart: "no" - expose: - - 8000 - links: - - vachan-db - - kratos - depends_on: - - kratos-postgresd - - kratos - - vachan-db - profiles: - - testing - networks: - - VE-network +# vachan-api-test: +# build: +# context: ../ +# dockerfile: ./docker/Dockerfile +# healthcheck: +# timeout: 45s +# interval: 10s +# retries: 10 +# environment: +# - VACHAN_POSTGRES_HOST=vachan-db +# - VACHAN_POSTGRES_USER=${VACHAN_POSTGRES_USER:-postgres} +# - VACHAN_POSTGRES_PASSWORD=${VACHAN_POSTGRES_PASSWORD:-password} +# - VACHAN_POSTGRES_DATABASE=${VACHAN_POSTGRES_DATABASE:-vachan_dev} +# - VACHAN_POSTGRES_PORT=5432 +# - VACHAN_KRATOS_PUBLIC_URL=http://kratos:4433/ +# - VACHAN_KRATOS_ADMIN_URL=http://kratos:4434/ +# - VACHAN_SUPER_USERNAME=${VACHAN_SUPER_USERNAME:-super@admin.com} +# - VACHAN_GITLAB_TOKEN=${VACHAN_GITLAB_TOKEN} +# - VACHAN_SUPER_PASSWORD=${VACHAN_SUPER_PASSWORD:-Just4Complexity!} +# - VACHAN_TEST_MODE="False" +# - VACHAN_LOGGING_LEVEL=INFO +# - VACHAN_DOMAIN=${VACHAN_DOMAIN:-http://localhost:8000} +# command: python -m pytest +# volumes: +# - logs-test-vol:/app/logs +# restart: "no" +# expose: +# - 8000 +# links: +# - vachan-db +# - kratos +# depends_on: +# - kratos-postgresd +# - kratos +# - vachan-db +# profiles: +# - testing +# networks: +# - VE-network vachan-demos: image: vachanengine/vachan-demos:v2.0.0-alpha.13