Skip to content

TagSpaces is an offline, open source, document manager with tagging support

scheduled tests - add download minio task for mac

Stanimir70baf0bc5499
diff --git a/.github/workflows/workflow_scheduled.yml b/.github/workflows/workflow_scheduled.yml
index 2d309517a..e1e93fa15 100644
--- a/.github/workflows/workflow_scheduled.yml
+++ b/.github/workflows/workflow_scheduled.yml
@@ -185,6 +185,12 @@ jobs:
yarn type-check
- name: Run Unit tests
run: yarn test-unit
+ - uses: suisei-cn/actions-download-file@v1
+ id: minio
+ name: Download the Minio.exe
+ with:
+ url: 'https://dl.min.io/server/minio/release/darwin-amd64/minio'
+ target: tests/bin/
- name: Run Electron tests
run: |
yarn install-ext
@@ -222,6 +228,12 @@ jobs:
yarn type-check
- name: Run Unit tests
run: yarn test-unit
+ - uses: suisei-cn/actions-download-file@v1
+ id: minio
+ name: Download the Minio.exe
+ with:
+ url: 'https://dl.min.io/server/minio/release/darwin-amd64/minio'
+ target: tests/bin/
- name: Run Electron tests
run: |
yarn install-ext
diff --git a/tests/setup-functions.js b/tests/setup-functions.js
index ba827d778..c34b41a78 100644
--- a/tests/setup-functions.js
+++ b/tests/setup-functions.js
@@ -17,7 +17,7 @@ export async function globalSetup() {
export async function startMinio() {
const winMinio = pathLib.resolve(__dirname, './bin/minio.exe');
- const unixMinio = 'minio'; // TODO unix path
+ const unixMinio = pathLib.resolve(__dirname, './bin/minio');
const command = global.isWin ? winMinio : unixMinio;
const minioProcess = await require('child_process').spawn(command, [