mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-17 10:42:25 -05:00
Validate new relic config in github actions
This commit is contained in:
14
.github/workflows/checks.yml
vendored
14
.github/workflows/checks.yml
vendored
@@ -8,6 +8,7 @@ permissions:
|
|||||||
env:
|
env:
|
||||||
DEBUG: True
|
DEBUG: True
|
||||||
NOTIFY_ENVIRONMENT: test
|
NOTIFY_ENVIRONMENT: test
|
||||||
|
NEW_RELIC_CONFIG_FILE: newrelic.ini
|
||||||
NEW_RELIC_ENVIRONMENT: test
|
NEW_RELIC_ENVIRONMENT: test
|
||||||
FLASK_APP: application.py
|
FLASK_APP: application.py
|
||||||
FLASK_ENV: development
|
FLASK_ENV: development
|
||||||
@@ -53,6 +54,19 @@ jobs:
|
|||||||
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
|
||||||
|
|
||||||
|
validate-new-relic-config:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
environment: staging
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: ./.github/actions/setup-project
|
||||||
|
- name: Validate NewRelic config
|
||||||
|
env:
|
||||||
|
NEW_RELIC_LICENSE_KEY: ${{ secrets.NEW_RELIC_LICENSE_KEY }}
|
||||||
|
# Need to set a NEW_RELIC_ENVIRONMENT with monitor_mode: true
|
||||||
|
NEW_RELIC_ENVIRONMENT: staging
|
||||||
|
run: pipenv run newrelic-admin validate-config $NEW_RELIC_CONFIG_FILE
|
||||||
|
|
||||||
pip-audit:
|
pip-audit:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
1
.github/workflows/daily_checks.yml
vendored
1
.github/workflows/daily_checks.yml
vendored
@@ -12,6 +12,7 @@ permissions:
|
|||||||
env:
|
env:
|
||||||
DEBUG: True
|
DEBUG: True
|
||||||
NOTIFY_ENVIRONMENT: test
|
NOTIFY_ENVIRONMENT: test
|
||||||
|
NEW_RELIC_CONFIG_FILE: newrelic.ini
|
||||||
NEW_RELIC_ENVIRONMENT: test
|
NEW_RELIC_ENVIRONMENT: test
|
||||||
FLASK_APP: application.py
|
FLASK_APP: application.py
|
||||||
FLASK_ENV: development
|
FLASK_ENV: development
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ error_collector.enabled = true
|
|||||||
# To stop specific errors from reporting to the UI, set this to
|
# To stop specific errors from reporting to the UI, set this to
|
||||||
# a space separated list of the Python exception type names to
|
# a space separated list of the Python exception type names to
|
||||||
# ignore. The exception name should be of the form 'module:class'.
|
# ignore. The exception name should be of the form 'module:class'.
|
||||||
error_collector.ignore_errors =
|
error_collector.ignore_classes =
|
||||||
|
|
||||||
# Browser monitoring is the Real User Monitoring feature of the UI.
|
# Browser monitoring is the Real User Monitoring feature of the UI.
|
||||||
# For those Python web frameworks that are supported, this
|
# For those Python web frameworks that are supported, this
|
||||||
|
|||||||
Reference in New Issue
Block a user