Skip to content

Commit

Permalink
hopefully work?
Browse files Browse the repository at this point in the history
  • Loading branch information
Ianyourgod committed Apr 4, 2024
1 parent 202b1e1 commit ee32aed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/runtests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
matrix:
node-version: [ 20.x ]
mongodb-version: ['7.0']


steps:
- uses: actions/checkout@v3
Expand All @@ -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
4 changes: 2 additions & 2 deletions api/db/UserManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit ee32aed

Please sign in to comment.