ci: add lint and format check job

VA-851
This commit is contained in:
Vance Ingalls
2026-03-23 10:28:32 -07:00
parent cd069ae276
commit d76aa2e8dc
2 changed files with 20 additions and 3 deletions
+17
View File
@@ -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
View File
@@ -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}"