Skip to content

Commit e31b1ef

Browse files
feat: add ci to check formatting
chore: also tests if this commit fails the CI (it should)
1 parent c0f9e81 commit e31b1ef

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/format.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Format Check
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [main]
7+
8+
jobs:
9+
oxfmt:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
19+
- run: yarn install --frozen-lockfile
20+
21+
- name: Check formatting
22+
run: yarn oxfmt:check

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"test": "vitest --run",
5959
"type-check": "tsc --noEmit",
6060
"format": "oxfmt",
61+
"format:check": "oxfmt --check",
6162
"lint": "oxlint",
6263
"lint:fix": "oxlint --fix",
6364
"lint-and-format": "yarn format && yarn lint:fix",
@@ -70,7 +71,7 @@
7071
"docs:dev": "vitepress dev docs --host",
7172
"docs:build": "vitepress build docs",
7273
"docs:preview": "vitepress preview docs",
73-
"docs:gen": "node docs/scripts/propsgen.ts --trace-uncaught"
74+
"docs:gen": "node docs/scripts/propsgen.ts --trace-uncaught"
7475
},
7576
"dependencies": {
7677
"@floating-ui/dom": "^1.7.4",

0 commit comments

Comments
 (0)