Skip to content

Commit 3afcd50

Browse files
committed
ci: add workflow to check format
1 parent 0cc628b commit 3afcd50

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
pull_request:
8+
branches:
9+
- "master"
10+
11+
env:
12+
HUSKY: 0
13+
14+
jobs:
15+
ci:
16+
name: CI
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 15
19+
20+
steps:
21+
- name: Checkout repo
22+
uses: actions/checkout@v4
23+
24+
- name: Setup pnpm
25+
uses: pnpm/action-setup@v4
26+
27+
- name: Setup Node
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version-file: ".nvmrc"
31+
cache: "pnpm"
32+
33+
- name: Install Dependencies
34+
shell: bash
35+
run: pnpm install --frozen-lockfile
36+
37+
- name: Format
38+
run: |
39+
pnpm run format

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.18.1

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,6 @@
7070
"*.{ts,tsx,mdx,css,json}": [
7171
"pnpm run format:fix"
7272
]
73-
}
73+
},
74+
"packageManager": "[email protected]+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
7475
}

0 commit comments

Comments
 (0)