mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 07:30:11 +00:00
[CI] Add lint/format/typecheck to ci (#494)
This commit is contained in:
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
@@ -25,6 +25,15 @@ jobs:
|
||||
run: |
|
||||
npm ci
|
||||
npm run build
|
||||
- name: Run lint
|
||||
run: |
|
||||
npm run lint
|
||||
- name: Run typecheck
|
||||
run: |
|
||||
npm run typecheck
|
||||
- name: Run format
|
||||
run: |
|
||||
npm run format
|
||||
- name: Run vitest tests
|
||||
run: |
|
||||
npm test -- --reporter=verbose
|
||||
|
||||
@@ -28,7 +28,9 @@
|
||||
"release": "node scripts/release.js",
|
||||
"test": "vitest",
|
||||
"lint": "eslint src",
|
||||
"lint:fix": "eslint src --fix"
|
||||
"lint:fix": "eslint src --fix",
|
||||
"format": "prettier --check './src/*.{js,ts,tsx,vue,mts}'",
|
||||
"format:fix": "prettier --write './src/*.{js,ts,tsx,vue,mts}'"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Reference in New Issue
Block a user