Skip to content

Commit 4ab373e

Browse files
committed
Create workflow for linting
1 parent 7f2ae8d commit 4ab373e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/linting.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Documentation: https://help.github.com/en/articles/workflow-syntax-for-github-actions
2+
3+
name: Linting
4+
5+
on:
6+
pull_request:
7+
branches: [main]
8+
push:
9+
branches: [main]
10+
11+
jobs:
12+
lint:
13+
name: Lint Code Base
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout the code base
19+
uses: actions/checkout@v3
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v3
23+
with:
24+
node-version: '22'
25+
26+
- name: Install dependencies
27+
run: npm install
28+
29+
- name: Run TypeScript linting
30+
run: npm run lint:ts
31+
32+
- name: Run Markdown linting
33+
run: npm run lint:md
34+
35+
- name: Check code formatting with Prettier
36+
run: npm run format:check

0 commit comments

Comments
 (0)