chore: add --if-present for workspace-wide commands, prepare for testing
Some checks are pending
Push & Release 🌍 / Automation 🎛️ (push) Waiting to run
Push & Release 🌍 / ${{ github.event_name == 'push' && 'Unstable 🚀⚠️' || 'Stable 🏷️✅' }} (push) Waiting to run
Push & Release 🌍 / GitHub CodeQL 🔬 (push) Waiting to run
Push & Release 🌍 / Deploy 🚀 (push) Blocked by required conditions

This commit is contained in:
Fernando Fernández 2024-12-29 17:49:36 +00:00 committed by GitHub
parent eec0ad4dba
commit 929a22ea34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 12 additions and 16 deletions

View File

@ -33,10 +33,9 @@ jobs:
matrix:
command:
- lint
- test
- check:types
include:
- workspace: frontend
command: analyze:cycles
- analyze:cycles
steps:
- name: Checkout ⬇️
@ -56,7 +55,7 @@ jobs:
run: npm ci --no-audit
- name: Run ${{ matrix.command }} ⚙️
run: npm run ${{ matrix.command }} ${{ matrix.workspace && format('-w {0}', matrix.workspace) || '' }}
run: npm run ${{ matrix.command }}
commits_checks:
name: Commit linting 💬✅

5
package-lock.json generated
View File

@ -2938,7 +2938,7 @@
"resolved": "frontend",
"link": true
},
"node_modules/@jellyfin-vue/tauri": {
"node_modules/@jellyfin-vue/tauri-packaging": {
"resolved": "packaging/tauri",
"link": true
},
@ -13124,8 +13124,7 @@
}
},
"packaging/tauri": {
"name": "@jellyfin-vue/tauri",
"version": "0.0.0",
"name": "@jellyfin-vue/tauri-packaging",
"dependencies": {
"@jellyfin-vue/frontend": "*"
},

View File

@ -23,9 +23,11 @@
"yarn": "yarn is not supported. Please use npm"
},
"scripts": {
"lint": "npm run lint --workspaces",
"lint:fix": "npm run lint:fix --workspaces",
"check:types": "npm run check:types --workspaces"
"lint": "npm run lint -ws --if-present",
"lint:fix": "npm run lint:fix -ws --if-present",
"check:types": "npm run check:types -ws --if-present",
"analyze:cycles": "npm run analyze:cycles -ws --if-present",
"test": "npm run test -ws --if-present"
},
"devDependencies": {
"@eslint/config-inspector": "0.6.0",

View File

@ -1,15 +1,11 @@
{
"name": "@jellyfin-vue/tauri",
"name": "@jellyfin-vue/tauri-packaging",
"private": true,
"version": "0.0.0",
"scripts": {
"start": "npm run gen-icon && tauri dev",
"gen-icon": "tauri icon ../../frontend/public/icon.svg",
"build": "npm run gen-icon && tauri build",
"clean": "git clean -fxd",
"lint": "true",
"lint:fix": "true",
"check:types": "true"
"clean": "git clean -fxd"
},
"dependencies": {
"@jellyfin-vue/frontend": "*"