From ee32aede876407d7c5f870a94dec51553be1cd31 Mon Sep 17 00:00:00 2001 From: Ianyourgod Date: Thu, 4 Apr 2024 14:42:11 -0500 Subject: [PATCH] hopefully work? --- .github/workflows/runtests.yaml | 12 ++++++++++++ api/db/UserManager.js | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) 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) => {