Skip to content

Commit 197e5f9

Browse files
committed
chore: add PR check workflow with type and biome checks
1 parent 1dbb138 commit 197e5f9

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/workflows/pr-check.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: PR Check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
permissions:
9+
id-token: write
10+
contents: read
11+
pull-requests: write
12+
13+
jobs:
14+
pr-check:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
- name: Install pnpm
20+
uses: pnpm/action-setup@v4
21+
- name: Setup Node.js 20.x
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: 20.x
25+
cache: "pnpm"
26+
- name: Install dependencies
27+
run: pnpm install
28+
- name: Type check
29+
run: pnpm type-check
30+
- name: Biome check
31+
uses: mongolyy/reviewdog-action-biome@v1
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
reporter: github-pr-review
35+

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717
"scripts": {
1818
"dev": "turbo dev",
1919
"build": "turbo build",
20+
"lint": "biome lint",
21+
"lint:fix": "biome lint --write",
2022
"format": "biome format",
2123
"format:fix": "biome format --write",
24+
"check": "biome check",
2225
"test": "turbo test",
2326
"clean": "turbo clean",
2427
"changeset": "changeset",

0 commit comments

Comments
 (0)