Skip to content

Commit

Permalink
Merge pull request #219 from unboxed/use-env-test-for-secrets
Browse files Browse the repository at this point in the history
Use fake credentials in test environment
  • Loading branch information
pixeltrix authored Nov 6, 2024
2 parents 62a2d2b + b86e51a commit 012381d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
APPLICATION_HOST=localhost

# These are fake credentials just formatted correctly so the client accepts them
NOTIFY_API_KEY=test-f0cf3daf-1e71-4401-9534-955267607d64-a34eb6f8-9fb9-4fb6-9931-ef69bd51cbc1
NOTIFY_CALLBACK_TOKEN=8659aa65-61d4-4b58-9f54-0917b28b874a
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@ jobs:
- name: Run rspec specs
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test
NOTIFY_API_KEY: ${{ secrets.NOTIFY_API_KEY }}
NOTIFY_CALLBACK_TOKEN: ${{ secrets.NOTIFY_CALLBACK_TOKEN }}
RAILS_ENV: test
run: |
bundle exec rspec
Expand Down Expand Up @@ -179,7 +177,5 @@ jobs:
env:
DATABASE_URL: postgres://postgres:postgres@localhost:5432/test
RAILS_ENV: test
NOTIFY_API_KEY: ${{ secrets.NOTIFY_API_KEY }}
NOTIFY_CALLBACK_TOKEN: ${{ secrets.NOTIFY_CALLBACK_TOKEN }}
run: |
bundle exec cucumber

0 comments on commit 012381d

Please sign in to comment.