Skip to content

Commit 5565a4f

Browse files
committed
Enable quality checks
1 parent dd35c9e commit 5565a4f

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/workflows/verify.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Verify
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
format:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v6
19+
- uses: actions/setup-node@v6
20+
with:
21+
node-version: 24
22+
- uses: pnpm/action-setup@v4
23+
- run: pnpm install
24+
- run: pnpm format:ci
25+
26+
lint:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v6
30+
- uses: actions/setup-node@v6
31+
with:
32+
node-version: 24
33+
- uses: pnpm/action-setup@v4
34+
- run: pnpm install
35+
- run: pnpm lint:ci

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@
5151
},
5252
"scripts": {
5353
"format": "prettier --write --ignore-unknown .",
54+
"format:ci": "prettier --check --ignore-unknown .",
5455
"lint": "oxlint --fix --type-aware --type-check --deny-warnings --report-unused-disable-directives",
56+
"lint:ci": "oxlint --type-aware --type-check --deny-warnings --report-unused-disable-directives",
57+
"prepack": "pnpm run '/^(format:ci|lint:ci|test|typecheck)$/'",
5558
"test": "vitest run",
5659
"typecheck": "tsc --noEmit"
5760
}

0 commit comments

Comments
 (0)