mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-05 05:37:09 +00:00
ci: add lint and format check job
VA-851
This commit is contained in:
@@ -26,6 +26,23 @@ jobs:
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm build
|
||||
|
||||
lint-and-format:
|
||||
name: Lint & Format
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 5
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 10
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
cache: pnpm
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm lint
|
||||
- run: pnpm format:check
|
||||
|
||||
typecheck:
|
||||
name: Typecheck
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
+3
-3
@@ -3,12 +3,12 @@ pre-commit:
|
||||
commands:
|
||||
lint:
|
||||
glob: "*.{js,jsx,ts,tsx}"
|
||||
run: oxlint {staged_files}
|
||||
run: npx oxlint {staged_files}
|
||||
format:
|
||||
glob: "*.{js,jsx,ts,tsx,json,css,md,yaml,yml}"
|
||||
run: oxfmt --check {staged_files}
|
||||
run: npx oxfmt --check {staged_files}
|
||||
|
||||
commit-msg:
|
||||
commands:
|
||||
commitlint:
|
||||
run: commitlint --edit "{1}"
|
||||
run: npx commitlint --edit "{1}"
|
||||
|
||||
Reference in New Issue
Block a user