ci: check format

This commit is contained in:
Stephen Zhou
2024-09-19 17:18:15 +08:00
parent 2059329691
commit 5d27c67cdd
6 changed files with 10 additions and 8 deletions
+5 -5
View File
@@ -3,13 +3,13 @@ on:
push:
branches: [main, dev]
name: CI Typecheck and Lint
name: CI Format, Typecheck and Lint
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Lint and Typecheck
name: Format, Lint and Typecheck
runs-on: ubuntu-latest
strategy:
@@ -33,10 +33,10 @@ jobs:
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Lint and Typecheck
- name: Format, Lint and Typecheck
run: |
pnpm run format:check
pnpm run typecheck
npm run lint
pnpm run lint
- name: Run test
run: pnpm test
+1
View File
@@ -1 +1,2 @@
packages/shared/src/hono.ts
pnpm-lock.yaml
+1 -1
View File
@@ -279,7 +279,7 @@ export function IcOutlineBackspace(props: React.SVGProps<SVGSVGElement>) {
<path
fill="currentColor"
d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H7.07L2.4 12l4.66-7H22zm-11.59-2L14 13.41L17.59 17L19 15.59L15.41 12L19 8.41L17.59 7L14 10.59L10.41 7L9 8.41L12.59 12L9 15.59z"
/>
/>
</svg>
)
}
@@ -29,7 +29,7 @@ import { UserAvatar } from "~/components/user-button"
import { isWebBuild, ROUTE_FEED_PENDING } from "~/constants"
import { shortcuts } from "~/constants/shortcuts"
import { useEntryReadabilityToggle } from "~/hooks/biz/useEntryActions"
import { useRouteParams,useRouteParamsSelector } from "~/hooks/biz/useRouteParams"
import { useRouteParams, useRouteParamsSelector } from "~/hooks/biz/useRouteParams"
import { useAuthQuery, useTitle } from "~/hooks/common"
import { stopPropagation } from "~/lib/dom"
import { FeedViewType } from "~/lib/enum"
+1 -1
View File
@@ -50,4 +50,4 @@
"menu.zoom": "縮放",
"menu.zoomIn": "放大",
"menu.zoomOut": "縮小"
}
}
+1
View File
@@ -23,6 +23,7 @@
"dev:debug": "export DEBUG=true && vite --debug",
"dev:web": "vite",
"format": "prettier --write .",
"format:check": "prettier --check .",
"generator:i18n-template": "tsx scripts/generate-i18n-locale.ts",
"lint": "eslint",
"lint:fix": "eslint --fix",