Skip to content

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

github actions migrate to npm

sytolk8eb4eae2618b
diff --git a/.github/workflows/workflow_dispatch.yml b/.github/workflows/workflow_dispatch.yml
index da97949f0..2099bbade 100644
--- a/.github/workflows/workflow_dispatch.yml
+++ b/.github/workflows/workflow_dispatch.yml
@@ -3,7 +3,7 @@ on:
workflow_dispatch:
inputs:
command:
- description: 'Command to execute e2e tests default: yarn test-playwright-web-headless'
+ description: 'Command to execute e2e tests default: npm run test-playwright-web-headless'
required: true
default: 'test-playwright-web-headless'
@@ -29,13 +29,13 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '14.x'
- - name: Running yarn install, prettier and type checks
+ - name: Running npm install, prettier and type checks
run: |
- yarn install --check-files --cache-folder .ycache
- yarn prettier-check
- yarn type-check
+ npm install
+ npm run prettier-check
+ npm run type-check
- name: Run Unit tests
- run: yarn test-unit
+ run: npm run test-unit
- uses: suisei-cn/actions-download-file@v1
id: minio
name: Download the Minio.exe
@@ -44,9 +44,9 @@ jobs:
target: tests/bin/
- name: Run Electron tests
run: |
- yarn install-ext-node
- yarn build-e2e
- yarn ${{ github.event.inputs.command }}
+ npm run install-ext-node
+ npm run build-e2e
+ npm run ${{ github.event.inputs.command }}
- uses: actions/upload-artifact@v2
if: always()
with:
diff --git a/.github/workflows/workflow_scheduled_mac_electron.yml b/.github/workflows/workflow_scheduled_mac_electron.yml
index d1cec9844..a600ee77c 100644
--- a/.github/workflows/workflow_scheduled_mac_electron.yml
+++ b/.github/workflows/workflow_scheduled_mac_electron.yml
@@ -21,19 +21,19 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '14.x'
- - name: Running yarn install, prettier and type checks
+ - name: Running npm install, prettier and type checks
run: |
- yarn install --check-files --cache-folder .ycache
- yarn prettier-check
- yarn type-check
+ npm install
+ npm run prettier-check
+ npm run type-check
- name: Run Unit tests
- run: yarn test-unit
+ run: npm run test-unit
- name: Run Electron tests
run: |
- yarn install-ext-node
- yarn build-main
- yarn build-e2e
- yarn test-playwright
+ npm run install-ext-node
+ 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:
diff --git a/.github/workflows/workflow_scheduled_mac_web.yml b/.github/workflows/workflow_scheduled_mac_web.yml
index a125ac525..c180ad2dc 100644
--- a/.github/workflows/workflow_scheduled_mac_web.yml
+++ b/.github/workflows/workflow_scheduled_mac_web.yml
@@ -27,13 +27,13 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '14.x'
- - name: Running yarn install, prettier and type checks
+ - name: Running npm install, prettier and type checks
run: |
- yarn install --check-files --cache-folder .ycache
- yarn prettier-check
- yarn type-check
+ npm install
+ npm run prettier-check
+ npm run type-check
- name: Run Unit tests
- run: yarn test-unit
+ run: npm run test-unit
- uses: suisei-cn/actions-download-file@v1
id: minio
name: Download the Minio
@@ -44,9 +44,9 @@ jobs:
run: chmod +x ./tests/bin/minio
- name: Run Electron tests
run: |
- yarn install-ext-web
- yarn build-e2e-web
- yarn test-playwright-web-headless
+ npm run install-ext-web
+ npm run build-e2e-web
+ npm run test-playwright-web-headless
- uses: IgnusG/[email protected]
if: always() # Run regardless of whether other steps failed
with:
diff --git a/.github/workflows/workflow_scheduled_win_electron.yml b/.github/workflows/workflow_scheduled_win_electron.yml
index 63ac85410..58a202793 100644
--- a/.github/workflows/workflow_scheduled_win_electron.yml
+++ b/.github/workflows/workflow_scheduled_win_electron.yml
@@ -22,19 +22,19 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '14.x'
- - name: Running yarn install, prettier and type checks
+ - name: Running npm install, prettier and type checks
run: |
- yarn install --check-files --cache-folder .ycache
- yarn prettier-check
- yarn type-check
+ npm install
+ npm run prettier-check
+ npm run type-check
- name: Run Unit tests
- run: yarn test-unit
+ run: npm run test-unit
- name: Run Electron tests
run: |
- yarn install-ext-node
- yarn build-main
- yarn build-e2e
- yarn test-playwright
+ npm run install-ext-node
+ 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:
diff --git a/.github/workflows/workflow_scheduled_win_electron_pro.yml b/.github/workflows/workflow_scheduled_win_electron_pro.yml
index bfc07af18..f5d0eee10 100644
--- a/.github/workflows/workflow_scheduled_win_electron_pro.yml
+++ b/.github/workflows/workflow_scheduled_win_electron_pro.yml
@@ -28,19 +28,19 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '14.x'
- - name: Running yarn install, prettier and type checks
+ - name: Running npm install, prettier and type checks
run: |
- yarn install --check-files --cache-folder .ycache
- yarn prettier-check
- yarn type-check
+ npm install
+ npm run prettier-check
+ npm run type-check
- name: Run Unit tests
- run: yarn test-unit
+ run: npm run test-unit
- name: Run Electron tests
run: |
- yarn install-ext-node
- yarn build-main
- yarn build-e2e
- yarn test-playwright
+ npm run install-ext-node
+ 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:
diff --git a/.github/workflows/workflow_scheduled_win_web.yml b/.github/workflows/workflow_scheduled_win_web.yml
index 4b1b72b09..8518e0ede 100644
--- a/.github/workflows/workflow_scheduled_win_web.yml
+++ b/.github/workflows/workflow_scheduled_win_web.yml
@@ -28,13 +28,13 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '14.x'
- - name: Running yarn install, prettier and type checks
+ - name: Running npm install, prettier and type checks
run: |
- yarn install --check-files --cache-folder .ycache
- yarn prettier-check
- yarn type-check
+ npm install
+ npm run prettier-check
+ npm run type-check
- name: Run Unit tests
- run: yarn test-unit
+ run: npm run test-unit
- uses: suisei-cn/actions-download-file@v1
id: minio
name: Download the Minio
@@ -43,9 +43,9 @@ jobs:
target: tests/bin/
- name: Run Electron tests
run: |
- yarn install-ext-web
- yarn build-e2e-web
- yarn test-playwright-web-headless
+ npm run install-ext-web
+ npm run build-e2e-web
+ npm run test-playwright-web-headless
- uses: IgnusG/[email protected]
if: always() # Run regardless of whether other steps failed
with: