From 5fc5d8d93f67f126766d0db8deb0eaafd2096edf Mon Sep 17 00:00:00 2001 From: vincent porte Date: Thu, 23 May 2024 15:59:40 +0200 Subject: [PATCH] (setup) update CI to add minio service & configure bucket --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02b8af79c..a97210ba1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,19 @@ jobs: POSTGRESQL_ADDON_DB: communaute POSTGRESQL_ADDON_USER: postgres POSTGRESQL_ADDON_PASSWORD: password + CELLAR_ADDON_KEY_ID: minioadmin + CELLAR_ADDON_KEY_SECRET: minioadmin + CELLAR_ADDON_PROTOCOL: http + CELLAR_ADDON_HOST: localhost:9000 services: + minio: + image: bitnami/minio + env: + MINIO_ROOT_USER: minioadmin + MINIO_ROOT_PASSWORD: minioadmin + ports: + - 9000:9000 + postgres: # Docker Hub image image: postgres:15-alpine @@ -57,6 +69,8 @@ jobs: python manage.py compress - name: ๐Ÿšง Check pending migrations run: python manage.py makemigrations --check --dry-run --noinput + - name: ๐Ÿšง Configure bucket + run: python manage.py configure_bucket - name: ๐Ÿคนโ€ Django tests run: pytest --numprocesses=logical --create-db env: