Skip to content

Commit d60c137

Browse files
committed
Add minio to github actions
1 parent a22a03e commit d60c137

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/toolkit-ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ jobs:
1818
runs-on: ubuntu-18.04
1919
steps:
2020
- uses: actions/checkout@v1
21+
- name: Crete minio service
22+
run: |
23+
mkdir -p $HOME/minio_data/storage
24+
/usr/bin/docker create --name minio -p 9000:9000 -e "MINIO_ACCESS_KEY=minio" -e "MINIO_SECRET_KEY=minio123" -e GITHUB_ACTIONS=true -e CI=true -v $HOME/minio_data:/data minio/minio server /data
25+
/usr/bin/docker start minio
2126
- name: Set up Python 3.7
2227
uses: actions/setup-python@v1
2328
with:
@@ -40,4 +45,7 @@ jobs:
4045
source ~/venv/bin/activate
4146
./runtests.sh
4247
env:
43-
TEST_DATABASE_URL: postgres://postgres:postgres@localhost:${{ job.services.postgres.ports['5432'] }}/postgres
48+
TEST_DATABASE_URL: postgres://postgres:postgres@localhost:${{ job.services.postgres.ports['5432'] }}/postgres
49+
TEST_AWS_ACCESS_KEY_ID: minio
50+
TEST_AWS_SECRET_ACCESS_KEY: minio123
51+
TEST_AWS_ENDPOINT_URL: http://localhost:9000/

0 commit comments

Comments
 (0)