diff --git a/.github/workflows/runtests.yaml b/.github/workflows/runtests.yaml index 041fe52..2307ab0 100644 --- a/.github/workflows/runtests.yaml +++ b/.github/workflows/runtests.yaml @@ -18,6 +18,7 @@ jobs: matrix: node-version: [ 20.x ] mongodb-version: ['7.0'] + steps: - uses: actions/checkout@v3 @@ -33,6 +34,17 @@ jobs: with: mongodb-version: ${{ matrix.mongodb-version }} + - name: Minio Deploy + uses: lovellfelix/minio-deploy-action@v1 + with: + endpoint: ${{ secrets.MINIO_ENDPOINT }} + access_key: ${{ secrets.MINIO_ACCESS_KEY }} + secret_key: ${{ secrets.MINIO_SECRET_KEY }} + bucket: 'projects,project-thumbnails' + # Optional inputs with their defaults: + source_dir: 'public' + target_dir: '/' + - run: npm ci - run: npm run build --if-present - run: node ./api/db/UMTests.js -u diff --git a/api/db/UserManager.js b/api/db/UserManager.js index 005988e..234f560 100644 --- a/api/db/UserManager.js +++ b/api/db/UserManager.js @@ -57,8 +57,8 @@ class UserManager { endPoint: 'localhost', port: 9000, useSSL: false, - accessKey: process.env.MinioClientID, - secretKey: process.env.MinioClientSecret + accessKey: process.env.MinioClientID || "default", + secretKey: process.env.MinioClientSecret || "default" }); // project bucket this.minioClient.bucketExists('projects', (err, exists) => {