Skip to content

Commit 0a26655

Browse files
committed
fix: update MinIO setup in E2E tests to use Docker run command and improve health checks
1 parent c8dc28f commit 0a26655

1 file changed

Lines changed: 16 additions & 13 deletions

File tree

.github/workflows/e2e-tests.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,7 @@ jobs:
3333
--health-interval 5s
3434
--health-timeout 5s
3535
--health-retries 10
36-
minio:
37-
image: bitnami/minio:latest
38-
env:
39-
MINIO_ROOT_USER: minioadmin
40-
MINIO_ROOT_PASSWORD: minioadmin
41-
MINIO_DEFAULT_BUCKETS: reqcore
42-
ports:
43-
- 9000:9000
44-
options: >-
45-
--health-cmd "curl -f http://localhost:9000/minio/health/live"
46-
--health-interval 5s
47-
--health-timeout 5s
48-
--health-retries 10
36+
4937
5038
env:
5139
DATABASE_URL: postgresql://reqcore:reqcore-ci@localhost:5432/reqcore
@@ -61,6 +49,21 @@ jobs:
6149
S3_FORCE_PATH_STYLE: "true"
6250

6351
steps:
52+
- name: Start MinIO
53+
run: |
54+
docker run -d \
55+
--name minio-ci \
56+
-p 9000:9000 \
57+
-e MINIO_ROOT_USER=minioadmin \
58+
-e MINIO_ROOT_PASSWORD=minioadmin \
59+
minio/minio:latest server /data
60+
timeout 30 sh -c 'until curl -sf http://localhost:9000/minio/health/live; do sleep 2; done'
61+
AWS_ACCESS_KEY_ID=minioadmin \
62+
AWS_SECRET_ACCESS_KEY=minioadmin \
63+
aws s3 mb s3://reqcore \
64+
--endpoint-url http://localhost:9000 \
65+
--region us-east-1
66+
6467
- name: Checkout
6568
uses: actions/checkout@v4
6669

0 commit comments

Comments
 (0)