Merge pull request #36 from medusa-project/Remove-test-local-yml-file #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |