mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 16:53:11 -04:00
Attempting to get E2E work with local API
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
103
.github/workflows/checks.yml
vendored
103
.github/workflows/checks.yml
vendored
@@ -53,65 +53,66 @@ jobs:
|
|||||||
pull-requests: write
|
pull-requests: write
|
||||||
contents: write
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# services:
|
services:
|
||||||
# postgres:
|
postgres:
|
||||||
# image: postgres
|
image: postgres
|
||||||
# env:
|
env:
|
||||||
# POSTGRES_USER: user
|
POSTGRES_USER: user
|
||||||
# POSTGRES_PASSWORD: password
|
POSTGRES_PASSWORD: password
|
||||||
# POSTGRES_DB: test_notification_api
|
POSTGRES_DB: test_notification_api
|
||||||
# options: >-
|
options: >-
|
||||||
# --health-cmd pg_isready
|
--health-cmd pg_isready
|
||||||
# --health-interval 10s
|
--health-interval 10s
|
||||||
# --health-timeout 5s
|
--health-timeout 5s
|
||||||
# --health-retries 5
|
--health-retries 5
|
||||||
# ports:
|
ports:
|
||||||
# # Maps tcp port 5432 on service container to the host
|
# Maps tcp port 5432 on service container to the host
|
||||||
# - 5432:5432
|
- 5432:5432
|
||||||
# redis:
|
redis:
|
||||||
# image: redis
|
image: redis
|
||||||
# options: >-
|
options: >-
|
||||||
# --health-cmd "redis-cli ping"
|
--health-cmd "redis-cli ping"
|
||||||
# --health-interval 10s
|
--health-interval 10s
|
||||||
# --health-timeout 5s
|
--health-timeout 5s
|
||||||
# --health-retries 5
|
--health-retries 5
|
||||||
# ports:
|
ports:
|
||||||
# # Maps tcp port 6379 on service container to the host
|
# Maps tcp port 6379 on service container to the host
|
||||||
# - 6379:6379
|
- 6379:6379
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/setup-project
|
- uses: ./.github/actions/setup-project
|
||||||
- uses: jwalton/gh-find-current-pr@v1
|
- uses: jwalton/gh-find-current-pr@v1
|
||||||
id: findPr
|
id: findPr
|
||||||
# - name: Clone API
|
- name: Clone API
|
||||||
# uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
# with:
|
with:
|
||||||
# repository: GSA/notifications-api
|
repository: GSA/notifications-api
|
||||||
# path: 'notifications-api'
|
path: 'notifications-api'
|
||||||
# - name: Install API dependencies
|
- name: Install API dependencies
|
||||||
# working-directory: 'notifications-api'
|
working-directory: 'notifications-api'
|
||||||
# run: make bootstrap
|
run: make bootstrap
|
||||||
# env:
|
env:
|
||||||
# DATABASE_URL: postgresql://user:password@localhost:5432/test_notification_api
|
DATABASE_URL: postgresql://user:password@localhost:5432/test_notification_api
|
||||||
# SQLALCHEMY_DATABASE_TEST_URI: postgresql://user:password@localhost:5432/test_notification_api
|
SQLALCHEMY_DATABASE_TEST_URI: postgresql://user:password@localhost:5432/test_notification_api
|
||||||
# REDIS_URL: redis://localhost:6379
|
REDIS_URL: redis://localhost:6379
|
||||||
# NOTIFY_E2E_TEST_EMAIL: ${{ secrets.NOTIFY_E2E_TEST_EMAIL }}
|
NOTIFY_E2E_TEST_EMAIL: ${{ secrets.NOTIFY_E2E_TEST_EMAIL }}
|
||||||
# NOTIFY_E2E_TEST_PASSWORD: ${{ secrets.NOTIFY_E2E_TEST_PASSWORD }}
|
NOTIFY_E2E_TEST_PASSWORD: ${{ secrets.NOTIFY_E2E_TEST_PASSWORD }}
|
||||||
# NOTIFY_ENVIRONMENT: development
|
NOTIFY_ENVIRONMENT: staging
|
||||||
# - name: Run API server
|
- name: Run API server
|
||||||
# working-directory: 'notifications-api'
|
working-directory: 'notifications-api'
|
||||||
# run: make run-procfile &
|
run: make run-procfile &
|
||||||
# env:
|
env:
|
||||||
# DATABASE_URL: postgresql://user:password@localhost:5432/test_notification_api
|
DATABASE_URL: postgresql://user:password@localhost:5432/test_notification_api
|
||||||
# SQLALCHEMY_DATABASE_TEST_URI: postgresql://user:password@localhost:5432/test_notification_api
|
SQLALCHEMY_DATABASE_TEST_URI: postgresql://user:password@localhost:5432/test_notification_api
|
||||||
# REDIS_URL: redis://localhost:6379
|
REDIS_URL: redis://localhost:6379
|
||||||
# NOTIFY_E2E_TEST_EMAIL: ${{ secrets.NOTIFY_E2E_TEST_EMAIL }}
|
NOTIFY_E2E_TEST_EMAIL: ${{ secrets.NOTIFY_E2E_TEST_EMAIL }}
|
||||||
# NOTIFY_E2E_TEST_PASSWORD: ${{ secrets.NOTIFY_E2E_TEST_PASSWORD }}
|
NOTIFY_E2E_TEST_PASSWORD: ${{ secrets.NOTIFY_E2E_TEST_PASSWORD }}
|
||||||
# NOTIFY_ENVIRONMENT: development
|
NOTIFY_ENVIRONMENT: staging
|
||||||
- name: Run Admin server
|
- name: Run Admin server
|
||||||
run: make run-flask &
|
run: make run-flask &
|
||||||
env:
|
env:
|
||||||
API_HOST_NAME: https://notify-api-staging.app.cloud.gov
|
# API_HOST_NAME: https://notify-api-staging.app.cloud.gov
|
||||||
|
API_HOST_NAME: http://localhost:6011
|
||||||
DANGEROUS_SALT: ${{ secrets.DANGEROUS_SALT }}
|
DANGEROUS_SALT: ${{ secrets.DANGEROUS_SALT }}
|
||||||
SECRET_KEY: ${{ secrets.SECRET_KEY }}
|
SECRET_KEY: ${{ secrets.SECRET_KEY }}
|
||||||
ADMIN_CLIENT_SECRET: ${{ secrets.ADMIN_CLIENT_SECRET }}
|
ADMIN_CLIENT_SECRET: ${{ secrets.ADMIN_CLIENT_SECRET }}
|
||||||
|
|||||||
Reference in New Issue
Block a user