Just trying to get the workflow to run

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2023-12-22 14:34:12 -05:00
parent d25f0869e0
commit 89b6e13afb

View File

@@ -47,69 +47,69 @@ jobs:
- name: Check coverage threshold - name: Check coverage threshold
run: poetry run coverage report --fail-under=90 run: poetry run coverage report --fail-under=90
end-to-end-tests: # end-to-end-tests:
permissions: # permissions:
checks: write # checks: write
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
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
- uses: ArtiomTr/jest-coverage-report-action@v2 # - uses: ArtiomTr/jest-coverage-report-action@v2
with: # with:
test-script: npm test # test-script: npm test
output: report-markdown # output: report-markdown
annotations: failed-tests # annotations: failed-tests
prnumber: ${{ steps.findPr.outputs.number }} # prnumber: ${{ steps.findPr.outputs.number }}
- 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
with: # with:
path: './notifications-api' # path: './notifications-api'
run: make bootstrap # run: make bootstrap
env: # env:
SQLALCHEMY_DATABASE_TEST_URI: postgresql://user:password@localhost:5432/test_notification_api # SQLALCHEMY_DATABASE_TEST_URI: postgresql://user:password@localhost:5432/test_notification_api
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 }}
- name: Run API server # - name: Run API server
with: # with:
path: './notifications-api' # path: './notifications-api'
run: make run-procfile & # run: make run-procfile &
env: # env:
SQLALCHEMY_DATABASE_TEST_URI: postgresql://user:password@localhost:5432/test_notification_api # SQLALCHEMY_DATABASE_TEST_URI: postgresql://user:password@localhost:5432/test_notification_api
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 }}
- name: Run E2E tests # - name: Run E2E tests
run: poetry run pytest -v --browser chromium --browser firefox --browser webkit tests/end_to_end # run: poetry run pytest -v --browser chromium --browser firefox --browser webkit tests/end_to_end
env: # env:
NOTIFY_E2E_AUTH_STATE_PATH: ${{ secrets.NOTIFY_E2E_AUTH_STATE_PATH }} # NOTIFY_E2E_AUTH_STATE_PATH: ${{ secrets.NOTIFY_E2E_AUTH_STATE_PATH }}
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_E2E_TEST_URI: ${{ secrets.NOTIFY_E2E_TEST_URI }} # NOTIFY_E2E_TEST_URI: ${{ secrets.NOTIFY_E2E_TEST_URI }}
API_HOST_NAME: http://localhost:6011 # API_HOST_NAME: http://localhost:6011
- name: Check coverage threshold # - name: Check coverage threshold
run: poetry run coverage report --fail-under=90 # run: poetry run coverage report --fail-under=90
validate-new-relic-config: validate-new-relic-config:
runs-on: ubuntu-latest runs-on: ubuntu-latest