Skip to content

Merge pull request #36 from medusa-project/Remove-test-local-yml-file #11

Merge pull request #36 from medusa-project/Remove-test-local-yml-file

Merge pull request #36 from medusa-project/Remove-test-local-yml-file #11

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- '**'
jobs:
rspec-tests:
name: Run RSpec Tests in Docker
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Set up and Run Tests
env: # Pass secrets as environment variables to Docker Compose
POSTGRES_DB: ${{ secrets.POSTGRES_DB }}
POSTGRES_USER: ${{ secrets.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
MINIO_ROOT_USER: ${{ secrets.MINIO_ROOT_USER }}
MINIO_ROOT_PASSWORD: ${{ secrets.MINIO_ROOT_PASSWORD }}
run: |
docker compose -f docker-compose.test.yml up --build --exit-code-from medusa-test --abort-on-container-exit
- name: Clean up
if: always()
run: |
docker compose -f docker-compose.yml -f docker-compose.test.yml down