Skip to content

Commit

Permalink
Env file for web service running in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkafton committed Jan 30, 2024
1 parent ea42775 commit 04128f2
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .env.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# This file is committed to Git. Ensure there are no secrets in it.

DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres
MITOPEN_SECURE_SSL_REDIRECT=False
MITOPEN_DB_DISABLE_SSL=True
MITOPEN_FEATURES_DEFAULT=True
OPENSEARCH_URL=localhost:9200
CELERY_TASK_ALWAYS_EAGER=True
CELERY_BROKER_URL=redis://localhost:6379/4
CELERY_RESULT_BACKEND=redis://localhost:6379/4
TIKA_CLIENT_ONLY=True
MITOPEN_BASE_URL=http://localhost:8063/
MAILGUN_KEY=fake_mailgun_key
MAILGUN_SENDER_DOMAIN=other.fake.site
OPENSEARCH_INDEX=testindex
INDEXING_API_USERNAME=mitodl
MITOPEN_COOKIE_DOMAIN=localhost
MITOPEN_COOKIE_NAME=cookie_monster
4 changes: 3 additions & 1 deletion .github/workflows/e2e-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ jobs:
- uses: actions/checkout@v4

- name: Run web service and E2E tests
run: docker compose up e2e-tests
run: |
cp .env.ci .env
docker compose up e2e-tests
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ repos:
- yarn.lock
- --exclude-files
- ".*/generated/"
- --exclude-files
- ".env.ci"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.8"
hooks:
Expand Down

0 comments on commit 04128f2

Please sign in to comment.