Skip to content

Commit 5763119

Browse files
committed
create CI for formatting src
1 parent 22d9fc3 commit 5763119

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/check.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ jobs:
2121
- run: npm run build
2222
- run: npm run type-check
2323

24-
lint:
24+
style:
2525
name: Lint
2626
runs-on: ubuntu-latest
2727
steps:
2828
- uses: actions/checkout@v3
29-
- uses: actions/setup-node@v3
30-
with:
31-
node-version: "18"
32-
cache: npm
33-
- run: npm ci
34-
- run: npm run lint
29+
# because npm install is slow
30+
- uses: oven-sh/setup-bun@v2
31+
- run: bun install --frozen-lockfile
32+
- run: bun run lint
33+
# skipping content because prettier can't format MDX
34+
- run: bunx prettier src --check

0 commit comments

Comments
 (0)