Skip to content

Commit

Permalink
Hardcode env variables into github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Warsama-Gabriel committed Dec 10, 2024
1 parent 51e759c commit c09d085
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/rspec-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
rspec-tests:
name: Run RSpec Tests in Docker
runs-on: ubuntu-latest
env:
RAILS_ENV: test
POSTGRES_DB: medusa_test
POSTGRES_USER: root
POSTGRES_PASSWORD: medusa
POSTGRES_HOST: postgres

steps:
- name: Checkout the repository
Expand All @@ -24,4 +30,4 @@ jobs:
- name: Clean up
if: always()
run: |
docker compose -f docker-compose.yml -f docker-compose.test.yml down
docker compose -f docker-compose.test.yml down --volumes --remove-orphans
6 changes: 0 additions & 6 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ services:
build:
context: .
dockerfile: docker/medusa/Dockerfile-test
environment:
RAILS_ENV: test
POSTGRES_DB: medusa_test
POSTGRES_USER: root
POSTGRES_PASSWORD: medusa
POSTGRES_HOST: postgres
volumes:
- .:/app
command: >
Expand Down

0 comments on commit c09d085

Please sign in to comment.