Skip to content

Commit b36c8b2

Browse files
authored
chore: run eslint & prettier in CI
1 parent 34c3e47 commit b36c8b2

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,37 @@ jobs:
2020
- run: npm ci
2121
- run: npm run build
2222
- run: npm run lint
23+
24+
lint:
25+
timeout-minutes: 5
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- name: Use Node.js 20.x
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 20.x
34+
35+
- name: Npm Install
36+
run: npm install
37+
38+
- name: Lint
39+
run: npm run lint
40+
41+
format:
42+
timeout-minutes: 5
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v4
46+
47+
- name: Use Node.js 20.x
48+
uses: actions/setup-node@v4
49+
with:
50+
node-version: 20.x
51+
52+
- name: Npm Install
53+
run: npm install
54+
55+
- name: Check Format
56+
run: npm run format:check

0 commit comments

Comments
 (0)