Skip to content

Commit

Permalink
production environment for running tests (#161)
Browse files Browse the repository at this point in the history
* production environment for running tests

* github action tests on develop as well

* add environment variables for testing on staging
  • Loading branch information
dawnwages authored Dec 25, 2023
1 parent 6177668 commit 5bbc206
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5bbc206

Please sign in to comment.