Skip to content

Commit ca39c9c

Browse files
committed
ci: replace MinIO with RustFS in integration tests
- Use rustfs/rustfs:1.0.0-alpha.81 image instead of minio/minio - Update environment variables to RUSTFS_* format - Update health check endpoint to /health - Rename container from minio to rustfs
1 parent d64b31e commit ca39c9c

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

.github/workflows/integration.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,27 +22,29 @@ jobs:
2222
- uses: dtolnay/rust-toolchain@stable
2323
- uses: Swatinem/rust-cache@v2
2424

25-
- name: Start MinIO
25+
- name: Start RustFS
2626
run: |
27-
docker run -d --name minio \
27+
docker run -d --name rustfs \
2828
-p 9000:9000 \
29-
-e MINIO_ROOT_USER=accesskey \
30-
-e MINIO_ROOT_PASSWORD=secretkey \
31-
minio/minio server /data
29+
-e RUSTFS_ROOT_USER=accesskey \
30+
-e RUSTFS_ROOT_PASSWORD=secretkey \
31+
-e RUSTFS_ACCESS_KEY=accesskey \
32+
-e RUSTFS_SECRET_KEY=secretkey \
33+
rustfs/rustfs:1.0.0-alpha.81 server /data
3234
33-
- name: Wait for MinIO
35+
- name: Wait for RustFS
3436
run: |
35-
echo "Waiting for MinIO to start..."
37+
echo "Waiting for RustFS to start..."
3638
for i in {1..30}; do
37-
if curl -sf http://localhost:9000/minio/health/live > /dev/null 2>&1; then
38-
echo "MinIO is ready!"
39+
if curl -sf http://localhost:9000/health > /dev/null 2>&1; then
40+
echo "RustFS is ready!"
3941
exit 0
4042
fi
41-
echo "Waiting for MinIO... ($i/30)"
43+
echo "Waiting for RustFS... ($i/30)"
4244
sleep 2
4345
done
44-
echo "MinIO failed to start"
45-
docker logs minio
46+
echo "RustFS failed to start"
47+
docker logs rustfs
4648
exit 1
4749
4850
- name: Run integration tests
@@ -52,9 +54,9 @@ jobs:
5254
TEST_S3_ACCESS_KEY: accesskey
5355
TEST_S3_SECRET_KEY: secretkey
5456

55-
- name: Show MinIO logs on failure
57+
- name: Show RustFS logs on failure
5658
if: failure()
57-
run: docker logs minio 2>&1 | tail -100
59+
run: docker logs rustfs 2>&1 | tail -100
5860

5961
golden:
6062
name: Golden Tests

0 commit comments

Comments
 (0)