Skip to content

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

chore: configuring GH action for tagspaces pro package

Ilian Sapundshiev2e8c1184d2fa
diff --git a/.github/workflows/workflow_dispatch.yml b/.github/workflows/workflow_dispatch.yml
index fb4792481..02e1df5ba 100644
--- a/.github/workflows/workflow_dispatch.yml
+++ b/.github/workflows/workflow_dispatch.yml
@@ -20,7 +20,8 @@ jobs:
with:
repository: tagspaces/testdata
path: tests/testdata
- - uses: actions/setup-node@v4
+ - name: Configure NPM for TagSpaces Pro
+ uses: actions/setup-node@v4
with:
node-version: '20.x'
always-auth: true
diff --git a/.github/workflows/workflow_scheduled_mac_electron.yml b/.github/workflows/workflow_scheduled_mac_electron.yml
index 1bfd9e397..10652748c 100644
--- a/.github/workflows/workflow_scheduled_mac_electron.yml
+++ b/.github/workflows/workflow_scheduled_mac_electron.yml
@@ -6,7 +6,7 @@ on:
jobs:
e2eTestsElectronMac:
- name: Test Desktop App Mac
+ name: Test TagSpaces Desktop on Mac
runs-on: macos-latest
steps:
- name: Checking out default branch
diff --git a/.github/workflows/workflow_scheduled_mac_minio.yml.disabled b/.github/workflows/workflow_scheduled_mac_minio.yml.disabled
deleted file mode 100644
index d910701c7..000000000
--- a/.github/workflows/workflow_scheduled_mac_minio.yml.disabled
+++ /dev/null
@@ -1,55 +0,0 @@
-name: scheduled workflow dispatch trigger
-on:
- schedule:
- - cron: '0 4 * * *'
-
-jobs:
- e2eTestsMinioMac:
- name: E2E Mac Minio
- runs-on: macos-latest
- steps:
- - name: Checking out default branch
- uses: actions/checkout@v4
- with:
- ref: develop
- submodules: true
- - name: Checkout TagspacesPro
- uses: actions/checkout@v4
- with:
- repository: tagspaces/tagspacespro
- token: ${{ secrets.CHECKOUT_TSPRO }}
- path: extensions/tagspacespro
- - name: Checkout TestData
- uses: actions/checkout@v4
- with:
- repository: tagspaces/testdata
- path: tests/testdata
- - uses: actions/setup-node@v4
- with:
- node-version: '16.x'
- - name: Running yarn install, prettier and type checks
- run: |
- yarn install --check-files --cache-folder .ycache
- yarn prettier-check
- 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: Make the Minio executable
- run: chmod +x ./tests/bin/minio
- - name: Run Electron tests
- run: |
- yarn install-ext-node
- yarn build:main
- yarn build-e2e
- yarn test-e2e-electron-minio
- - uses: actions/upload-artifact@v2
- if: always()
- with:
- name: test-pages
- path: tests/test-pages/
diff --git a/.github/workflows/workflow_scheduled_mac_web.yml b/.github/workflows/workflow_scheduled_mac_web.yml
index 8d183e818..996e39720 100644
--- a/.github/workflows/workflow_scheduled_mac_web.yml
+++ b/.github/workflows/workflow_scheduled_mac_web.yml
@@ -1,4 +1,4 @@
-name: Nightly E2E Tests Web Minio macOS
+name: Nightly E2E Tests Web Pro Minio macOS
on:
schedule:
- cron: '0 3 * * *'
@@ -6,7 +6,7 @@ on:
jobs:
e2eTestsWebMac:
- name: Test Web App MacOS
+ name: Test TagSpaces Pro Web on Mac
runs-on: macos-latest
steps:
- name: Checking out default branch
@@ -14,20 +14,18 @@ jobs:
with:
ref: develop
submodules: true
- - name: Checkout TagspacesPro
- uses: actions/checkout@v4
- with:
- repository: tagspaces/tagspacespro
- token: ${{ secrets.CHECKOUT_TSPRO }}
- path: extensions/tagspacespro
- name: Checkout TestData
uses: actions/checkout@v4
with:
repository: tagspaces/testdata
path: tests/testdata
- - uses: actions/setup-node@v4
+ - name: Configure NPM for TagSpaces Pro
+ uses: actions/setup-node@v4
with:
node-version: '20.x'
+ always-auth: true
+ registry-url: https://npm.pkg.github.com/
+ scope: '@tagspacespro'
- name: Running npm install, prettier and type checks
run: |
npm install
diff --git a/.github/workflows/workflow_scheduled_win_electron.disabled b/.github/workflows/workflow_scheduled_win_electron.disabled
deleted file mode 100644
index 1aa0f2e87..000000000
--- a/.github/workflows/workflow_scheduled_win_electron.disabled
+++ /dev/null
@@ -1,186 +0,0 @@
-name: Nightly E2E Tests Electron Windows
-on:
- schedule:
- - cron: '0 0 * * *'
-
-jobs:
- e2eTestsElectronWin:
- name: Test Desktop App Windows
- runs-on: windows-latest
-
- steps:
- - name: Checking out default branch
- uses: actions/checkout@v4
- with:
- ref: develop
- submodules: true
- - name: Checkout TestData
- uses: actions/checkout@v4
- with:
- repository: tagspaces/testdata
- path: tests/testdata
- - uses: actions/setup-node@v4
- with:
- node-version: '16.x'
- - name: Running npm install, prettier and type checks
- run: |
- npm install
- npm run prepare-node
- npm run prettier-check
- npm run type-check
- - name: Run Unit tests
- run: npm run test-unit
- - name: Run Electron tests
- run: |
- npm run build:main
- npm run build-e2e
- npm run test-playwright
- - uses: IgnusG/[email protected]
- if: always() # Run regardless of whether other steps failed
- with:
- access-token: ${{ secrets.GITHUB_TOKEN }}
- check-name: Report Desktop App Windows
- working-directory: tests
- - uses: actions/upload-artifact@v2
- if: failure()
- with:
- name: test-artifacts
- path: |
- tests/test-pages/
- tests/test-reports/
-
-# e2eTestsElectronUbuntu:
-# name: E2E Ubuntu Electron
-# runs-on: ubuntu-latest
-# steps:
-# - name: Checking out default branch
-# uses: actions/checkout@v4
-# with:
-# ref: develop
-# submodules: true
-# - name: Checkout TestData
-# uses: actions/checkout@v4
-# with:
-# repository: tagspaces/testdata
-# path: tests/testdata
-# - uses: actions/setup-node@v4
-# with:
-# node-version: '12.x'
-# - name: Running yarn install, prettier and type checks
-# run: |
-# yarn install --check-files --cache-folder .ycache
-# yarn prettier-check
-# yarn type-check
-# - name: Run Unit tests
-# run: yarn test-unit
-# - name: Run Electron tests
-# run: |
-# yarn install-ext
-# yarn build:main
-# yarn build-e2e
-# yarn test-playwright
-# - uses: actions/upload-artifact@v2
-# if: always()
-# with:
-# name: test-pages
-# path: tests/test-pages/
-
-# e2eTestsMinioUbuntu:
-# name: E2E Ubuntu Minio
-# runs-on: ubuntu-latest
-# steps:
-# - name: Checking out default branch
-# uses: actions/checkout@v4
-# with:
-# ref: develop
-# submodules: true
-# - name: Checkout TagspacesPro
-# uses: actions/checkout@v4
-# with:
-# repository: tagspaces/tagspacespro
-# token: ${{ secrets.CHECKOUT_TSPRO }}
-# path: extensions/tagspacespro
-# - name: Checkout TestData
-# uses: actions/checkout@v4
-# with:
-# repository: tagspaces/testdata
-# path: tests/testdata
-# - uses: actions/setup-node@v4
-# with:
-# node-version: '12.x'
-# - name: Running yarn install, prettier and type checks
-# run: |
-# yarn install --check-files --cache-folder .ycache
-# yarn prettier-check
-# yarn type-check
-# - name: Run Unit tests
-# run: yarn test-unit
-# - uses: suisei-cn/actions-download-file@v1
-# id: minio
-# name: Download the Minio
-# with:
-# url: 'https://dl.min.io/server/minio/release/linux-amd64/minio'
-# target: tests/bin/
-# - name: Make the Minio executable
-# run: chmod +x ./tests/bin/minio
-# - name: Run Electron tests
-# run: |
-# yarn install-ext
-# yarn build:main
-# yarn build-e2e
-# yarn test-e2e-electron-minio
-# - uses: actions/upload-artifact@v2
-# if: always()
-# with:
-# name: test-pages
-# path: tests/test-pages/
-#
-# e2eTestsWebUbuntu:
-# name: E2E Ubuntu Web
-# runs-on: ubuntu-latest
-# steps:
-# - name: Checking out default branch
-# uses: actions/checkout@v4
-# with:
-# ref: develop
-# submodules: true
-# - name: Checkout TagspacesPro
-# uses: actions/checkout@v4
-# with:
-# repository: tagspaces/tagspacespro
-# token: ${{ secrets.CHECKOUT_TSPRO }}
-# path: extensions/tagspacespro
-# - name: Checkout TestData
-# uses: actions/checkout@v4
-# with:
-# repository: tagspaces/testdata
-# path: tests/testdata
-# - uses: actions/setup-node@v4
-# with:
-# node-version: '12.x'
-# - name: Running yarn install, prettier and type checks
-# run: |
-# yarn install --check-files --cache-folder .ycache
-# yarn prettier-check
-# 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/linux-amd64/minio'
-# target: tests/bin/
-# - name: Make the Minio executable
-# run: chmod +x ./tests/bin/minio
-# - name: Run Electron tests
-# run: |
-# yarn install-ext
-# yarn build:main
-# yarn build-e2e
-# yarn test-e2e-web
-# - uses: actions/upload-artifact@v2
-# if: always()
-# with:
-# name: test-reports
-# path: tests/test-reports/
diff --git a/.github/workflows/workflow_scheduled_win_electron_pro.yml b/.github/workflows/workflow_scheduled_win_electron_pro.yml
index 941de68a2..e47af21ef 100644
--- a/.github/workflows/workflow_scheduled_win_electron_pro.yml
+++ b/.github/workflows/workflow_scheduled_win_electron_pro.yml
@@ -6,7 +6,7 @@ on:
jobs:
e2eTestsElectronWin:
- name: Test Desktop App Windows Pro
+ name: Test TagSpaces Pro on Windows
runs-on: windows-latest
steps:
@@ -15,20 +15,18 @@ jobs:
with:
ref: develop
submodules: true
- - name: Checkout TagspacesPro
- uses: actions/checkout@v4
- with:
- repository: tagspaces/tagspacespro
- token: ${{ secrets.CHECKOUT_TSPRO }}
- path: extensions/tagspacespro
- name: Checkout TestData
uses: actions/checkout@v4
with:
repository: tagspaces/testdata
path: tests/testdata
- - uses: actions/setup-node@v4
+ - name: Configure NPM for TagSpaces Pro
+ uses: actions/setup-node@v4
with:
node-version: '20.x'
+ always-auth: true
+ registry-url: https://npm.pkg.github.com/
+ scope: '@tagspacespro'
- name: Running npm install, prettier and type checks
run: |
npm install
diff --git a/.github/workflows/workflow_scheduled_win_minio.yml.disabled b/.github/workflows/workflow_scheduled_win_minio.yml.disabled
deleted file mode 100644
index 2be17b215..000000000
--- a/.github/workflows/workflow_scheduled_win_minio.yml.disabled
+++ /dev/null
@@ -1,60 +0,0 @@
-name: Nightly E2E Tests Electron Minio Windows
-on:
- schedule:
- - cron: '0 1 * * *'
-
-jobs:
- e2eTestsMinioWin:
- name: E2E Windows Minio
- runs-on: windows-latest
-
- steps:
- - name: Checking out default branch
- uses: actions/checkout@v4
- with:
- ref: develop
- submodules: true
- - name: Checkout TagspacesPro
- uses: actions/checkout@v4
- with:
- repository: tagspaces/tagspacespro
- token: ${{ secrets.CHECKOUT_TSPRO }}
- path: extensions/tagspacespro
- - name: Checkout TestData
- uses: actions/checkout@v4
- with:
- repository: tagspaces/testdata
- path: tests/testdata
- - uses: actions/setup-node@v4
- with:
- node-version: '16.x'
- - name: Running yarn install, prettier and type checks
- run: |
- yarn install --check-files --cache-folder .ycache
- yarn prettier-check
- yarn type-check
- - name: Run Unit tests
- run: yarn test-unit
- - uses: suisei-cn/actions-download-file@v1
- id: minio
- name: Download the Minio
- with:
- url: 'https://dl.min.io/server/minio/release/windows-amd64/minio.exe'
- target: tests/bin/
- - name: Run Electron tests
- run: |
- yarn install-ext-node
- yarn build:main
- yarn build-e2e
- yarn test-e2e-electron-minio
- - uses: IgnusG/[email protected]
- if: always() # Run regardless of whether other steps failed
- with:
- access-token: ${{ secrets.GITHUB_TOKEN }}
- check-name: Jest Report Electron
- working-directory: tests
- - uses: actions/upload-artifact@v2
- if: always()
- with:
- name: test-pages
- path: tests/test-pages/
diff --git a/.github/workflows/workflow_scheduled_win_web.yml b/.github/workflows/workflow_scheduled_win_web.yml
index feacd2554..7561149ad 100644
--- a/.github/workflows/workflow_scheduled_win_web.yml
+++ b/.github/workflows/workflow_scheduled_win_web.yml
@@ -6,7 +6,7 @@ on:
jobs:
e2eTestsWebWin:
- name: Test Web App Windows
+ name: Test TagSpaces Pro Web on Windows
runs-on: windows-latest
steps:
@@ -15,20 +15,18 @@ jobs:
with:
ref: develop
submodules: true
- - name: Checkout TagspacesPro
- uses: actions/checkout@v4
- with:
- repository: tagspaces/tagspacespro
- token: ${{ secrets.CHECKOUT_TSPRO }}
- path: extensions/tagspacespro
- name: Checkout TestData
uses: actions/checkout@v4
with:
repository: tagspaces/testdata
path: tests/testdata
- - uses: actions/setup-node@v4
+ - name: Configure NPM for TagSpaces Pro
+ uses: actions/setup-node@v4
with:
node-version: '20.x'
+ always-auth: true
+ registry-url: https://npm.pkg.github.com/
+ scope: '@tagspacespro'
- name: Running npm install, prettier and type checks
run: |
npm install