增加 window 和 proxy 的 crud,增加线程锁,避免并发打开窗口时 webSocketDebuggerUrl 占用同一端口 #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- '**.js' | |
- '**.mjs' | |
- '**.cjs' | |
- '**.jsx' | |
- '**.ts' | |
- '**.mts' | |
- '**.cts' | |
- '**.tsx' | |
- '**.vue' | |
pull_request: | |
paths: | |
- '**.js' | |
- '**.mjs' | |
- '**.cjs' | |
- '**.jsx' | |
- '**.ts' | |
- '**.mts' | |
- '**.cts' | |
- '**.tsx' | |
- '**.vue' | |
concurrency: | |
group: lint-${{ github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: 'bash' | |
jobs: | |
eslint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
- run: npm ci | |
env: | |
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | |
- run: npm run lint --if-present | |
# This job just check code style for in-template contributions. | |
code-style: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: 'npm' | |
- run: npm i prettier | |
- run: npx prettier --check "**/*.{js,mjs,cjs,jsx,ts,mts,cts,tsx,vue}" |