Skip to content

Commit

Permalink
Fix test workflow for minio 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Rodríguez Flores committed Jun 13, 2024
1 parent 639a9d9 commit fc9c7e8
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,12 @@ jobs:
runs-on: ubuntu-latest

services:
minio:
image: minio/minio:latest
env:
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
ports:
- 9000:9000
options: --entrypoint sh

zookeeper:
image: bitnami/zookeeper:latest
ports:
- 2181:2181

steps:
- name: Start Minio
run: |
docker start minio
docker exec minio minio server /data

- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -49,6 +36,14 @@ jobs:
run: |
pip install -r resources/src/requirements.txt
- name: Start Minio
run: |
docker run -d --name minio \
-e MINIO_ACCESS_KEY=minioadmin \
-e MINIO_SECRET_KEY=minioadmin \
-p 9000:9000 \
minio/minio server /data
- name: Run tests
run: |
pip install coverage
Expand Down

0 comments on commit fc9c7e8

Please sign in to comment.