Skip to content

Commit f2fd5b5

Browse files
committed
adding pre-commit-checks workflow
1 parent 0ba7d56 commit f2fd5b5

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Pre-commit checks
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
pull_request:
8+
branches:
9+
- '**'
10+
11+
jobs:
12+
pre-commit-checks:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 22
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Run cspell
28+
run: npm run cspell
29+
30+
- name: Run lint
31+
run: npm run lint
32+
33+
- name: Run build
34+
run: npm run build

0 commit comments

Comments
 (0)