feat: use test:debug for CI

This commit is contained in:
JellyBrick
2023-10-16 02:08:25 +09:00
parent d78fbe476e
commit 7577aba45e
3 changed files with 16 additions and 4 deletions

View File

@ -36,11 +36,11 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Test
uses: GabrielBB/xvfb-action@v1
uses: coactions/setup-xvfb@v1
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
with:
run: pnpm test
run: pnpm test:debug
# Build and release if it's the main repository
- name: Build and release on Mac

View File

@ -88,12 +88,12 @@
},
"scripts": {
"test": "yarpm-pnpm run build && playwright test",
"test:debug": "DEBUG=pw:browser* yarpm-pnpm run build && playwright test",
"test:debug": "yarpm-pnpm run build && cross-env DEBUG=pw:*,-pw:test:protocol playwright test",
"rollup:preload": "rollup -c rollup.preload.config.ts --configPlugin @rollup/plugin-typescript --bundleConfigAsCjs",
"rollup:main": "rollup -c rollup.main.config.ts --configPlugin @rollup/plugin-typescript --bundleConfigAsCjs",
"build": "yarpm-pnpm run rollup:preload && yarpm-pnpm run rollup:main",
"start": "yarpm-pnpm run build && electron ./dist/index.js",
"start:debug": "ELECTRON_ENABLE_LOGGING=1 yarpm-pnpm run start",
"start:debug": "cross-env ELECTRON_ENABLE_LOGGING=1 yarpm-pnpm run start",
"postinstall": "patch-package",
"clean": "del-cli dist && del-cli pack",
"dist": "yarpm-pnpm run clean && yarpm-pnpm run build && electron-builder --win --mac --linux -p never",
@ -180,6 +180,7 @@
"@typescript-eslint/eslint-plugin": "6.7.5",
"auto-changelog": "2.4.0",
"builtin-modules": "^3.3.0",
"cross-env": "7.0.3",
"del-cli": "5.1.0",
"electron": "27.0.0",
"electron-builder": "24.6.4",

11
pnpm-lock.yaml generated
View File

@ -156,6 +156,9 @@ devDependencies:
builtin-modules:
specifier: ^3.3.0
version: 3.3.0
cross-env:
specifier: 7.0.3
version: 7.0.3
del-cli:
specifier: 5.1.0
version: 5.1.0
@ -1872,6 +1875,14 @@ packages:
dev: true
optional: true
/cross-env@7.0.3:
resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==}
engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'}
hasBin: true
dependencies:
cross-spawn: 7.0.3
dev: true
/cross-spawn@7.0.3:
resolution: {integrity: sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==}
engines: {node: '>= 8'}