From 5bbc20662e008da9cc6f8f6ac5d8a25ddacf8bb2 Mon Sep 17 00:00:00 2001 From: Dawn Wages Date: Mon, 25 Dec 2023 17:21:50 -0500 Subject: [PATCH] production environment for running tests (#161) * production environment for running tests * github action tests on develop as well * add environment variables for testing on staging --- .github/workflows/tests.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9b9ad874..bc21568d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,16 +4,29 @@ on: pull_request: branches: - main + - develop push: branches: - main + - develop jobs: build: env: - ENVIRONMENT: 'dev' - DJANGO_SETTINGS_MODULE: 'indymeet.settings.dev' - SECRET_KEY: ${{ secrets.SECRET_KEY }} + ENVIRONMENT: 'production' + DJANGO_SETTINGS_MODULE: 'indymeet.settings.production' + APPINSIGHTS_INSTRUMENTATIONKEY: ${{ secrets.STAGING_APPINSIGHTS_INSTRUMENTATIONKEY }} + APPLICATIONINSIGHTSAGENT_EXTENSION_ENABLED: 'true' + DEBUG: 'True' + HOST: ${{ secrets.HOST_ADDON }} + PASSWORD: ${{ secrets.PASSWORD_ADDON }} + RECAPTCHA_PRIVATE_KEY: ${{ secrets.RECAPTCHA_PRIVATE_KEY }} + RECAPTCHA_PUBLIC_KEY: ${{ secrets.RECAPTCHA_PUBLIC_KEY }} + SCM_DO_BUILD_DURING_DEPLOYMENT: 'true' + SECRET_KEY: ${{ secrets.STAGING_SECRET_KEY }} + USER: ${{ secrets.USER_ADDON }} + WEBSITE_HTTPLOGGING_RETENTION_DAYS: '7' + environment: staging-djangonaut-space runs-on: ubuntu-latest steps: