Skip to content

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

chore: optimizing gh actions

Ilian Sapundshiev49449e0f9a24
diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml
index e6e23fa0e..77365d203 100644
--- a/.github/workflows/pull_request.yml
+++ b/.github/workflows/pull_request.yml
@@ -1,5 +1,5 @@
+name: Pull Request Workflow Dispatch Trigger
on: pull_request
-name: PR
jobs:
e2eTestsWin:
@@ -31,7 +31,7 @@ jobs:
run: |
npm run build-e2e
npm run test-playwright
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
if: failure()
with:
name: test-artifacts
@@ -82,7 +82,7 @@ jobs:
run: |
npm run build-e2e-web
npm run test-playwright-web-headless
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
if: failure()
with:
name: test-artifacts-pr
diff --git a/.github/workflows/workflow_dispatch.yml b/.github/workflows/workflow_dispatch.yml
index ec1f604a8..9afcb0346 100644
--- a/.github/workflows/workflow_dispatch.yml
+++ b/.github/workflows/workflow_dispatch.yml
@@ -1,4 +1,4 @@
-name: manual workflow dispatch trigger
+name: Manual Workflow Dispatch Trigger
on:
workflow_dispatch:
inputs:
@@ -37,22 +37,23 @@ jobs:
npm run type-check
- name: Run Unit tests
run: npm run test-unit
- - uses: suisei-cn/actions-download-file@v1
+ - uses: suisei-cn/[email protected]
id: minio
- name: Download the Minio.exe
+ name: Download Minio executable
with:
- url: 'https://dl.min.io/server/minio/release/windows-amd64/minio.exe'
+ # url: 'https://dl.min.io/server/minio/release/windows-amd64/minio.exe'
+ url: 'https://dl.min.io/server/minio/release/linux-amd64/minio'
target: tests/bin/
- name: Run Electron tests
run: |
npm run build-e2e
npm run ${{ github.event.inputs.command }}
- - uses: actions/upload-artifact@v2
+ - uses: actions/upload-artifact@v4
if: always()
with:
name: test-pages
path: tests/test-pages/
- - uses: actions/upload-artifact@v2
+ - uses: actions/upload-artifact@v4
if: failure()
with:
name: test-artifacts