Skip to content

Commit

Permalink
CI: Add MinIO service
Browse files Browse the repository at this point in the history
  • Loading branch information
pka committed Jan 7, 2021
1 parent 6a8dbd0 commit f2b1d77
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ jobs:
image: sourcepole/trextestdb
ports:
- 5439:5432
minio:
image: minio/minio
env:
MINIO_REGION_NAME: my-region
MINIO_ACCESS_KEY: miniostorage
MINIO_SECRET_KEY: miniostorage
ports:
- 9000:9000

steps:
- uses: actions/checkout@v2
Expand All @@ -36,6 +44,17 @@ jobs:
profile: minimal
toolchain: stable
override: true
- name: Start MinIO
# Does it die because of missing start args?
run: docker run -d --rm -p 9000:9000 -e MINIO_REGION_NAME=my-region -e MINIO_ACCESS_KEY=miniostorage -e MINIO_SECRET_KEY=miniostorage minio/minio server /data
- name: Install MinIO Client
run: |
curl -o mc -L https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x mc
- name: Create S3 Bucket
run: |
./mc config host add local-docker http://127.0.0.1:9000 miniostorage miniostorage
./mc mb local-docker/trex
- name: Install libgdal-dev
run: sudo apt install -y libgdal-dev
Expand All @@ -46,6 +65,8 @@ jobs:

- name: Execute tests
run: cargo test --all-features --all --no-fail-fast
env:
S3TEST: "true"

- name: Execute DB tests
run: cargo test --all-features --all --no-fail-fast -- --ignored
Expand Down

0 comments on commit f2b1d77

Please sign in to comment.