Skip to content

Commit

Permalink
Add minio to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
leela committed Jul 25, 2020
1 parent a22a03e commit 78692a6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/toolkit-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ jobs:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Crete minio service
run: |
mkdir -p minio_data/storage
/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 minio_data:/minio_data minio/minio server /minio_data
/usr/bin/docker start minio
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
Expand All @@ -40,4 +45,7 @@ jobs:
source ~/venv/bin/activate
./runtests.sh
env:
TEST_DATABASE_URL: postgres://postgres:postgres@localhost:${{ job.services.postgres.ports['5432'] }}/postgres
TEST_DATABASE_URL: postgres://postgres:postgres@localhost:${{ job.services.postgres.ports['5432'] }}/postgres
TEST_AWS_ACCESS_KEY_ID: minio
TEST_AWS_SECRET_ACCESS_KEY: minio123
TEST_AWS_ENDPOINT_URL: http://localhost:9000/

0 comments on commit 78692a6

Please sign in to comment.