Skip to content

Commit f5ade63

Browse files
committed
chore: make playwright optional and only install when necessary in ci
1 parent be5015e commit f5ade63

4 files changed

Lines changed: 26 additions & 16 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
cache: true
3030

3131
- name: 📦 Install dependencies
32-
run: pnpm install
32+
run: pnpm install --no-optional --ignore-scripts
3333

3434
- name: 🌐 Compare translations
3535
run: pnpm i18n:check

.github/workflows/lunaria.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
cache: true
3939

4040
- name: 📦 Install dependencies
41-
run: pnpm install
41+
run: pnpm install --no-optional --ignore-scripts
4242

4343
- name: Generate Lunaria Overview
4444
uses: lunariajs/action@v1-prerelease

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,10 @@
100100
"devDependencies": {
101101
"@intlify/core-base": "11.2.8",
102102
"@npm/types": "2.1.0",
103-
"@playwright/test": "1.58.1",
104103
"@types/node": "24.10.9",
105104
"@types/sanitize-html": "2.16.0",
106105
"@types/semver": "7.7.1",
107106
"@types/validate-npm-package-name": "4.0.2",
108-
"@vitest/browser-playwright": "4.0.18",
109107
"@vitest/coverage-v8": "4.0.18",
110108
"@vue/test-utils": "2.4.6",
111109
"axe-core": "4.11.1",
@@ -114,14 +112,18 @@
114112
"lint-staged": "16.2.7",
115113
"oxfmt": "0.27.0",
116114
"oxlint": "1.42.0",
117-
"playwright-core": "1.58.0",
118115
"schema-dts": "1.1.5",
119116
"simple-git-hooks": "2.13.1",
120117
"typescript": "5.9.3",
121118
"vitest": "npm:@voidzero-dev/vite-plus-test@0.0.0-833c515fa25cef20905a7f9affb156dfa6f151ab",
122119
"vitest-environment-nuxt": "1.0.1",
123120
"vue-tsc": "3.2.4"
124121
},
122+
"optionalDependencies": {
123+
"@playwright/test": "1.58.1",
124+
"@vitest/browser-playwright": "4.0.18",
125+
"playwright-core": "1.58.0"
126+
},
125127
"engines": {
126128
"node": ">=24"
127129
},

pnpm-lock.yaml

Lines changed: 19 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)