Skip to content

Commit bd076e8

Browse files
committed
ci(lint): lint for code spell and pr title
1 parent 4334ed3 commit bd076e8

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

.cspell.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"words": [
33
"algohub",
4+
"amannn",
45
"covector",
56
"icns",
67
"persistedstate",

.github/workflows/lint.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Lint Pr Title
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
lint-pr-title:
7+
name: Validating PR title
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: amannn/action-semantic-pull-request@v5
11+
env:
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
with:
14+
types: |
15+
fix
16+
feat
17+
docs
18+
style
19+
refactor
20+
perf
21+
test
22+
build
23+
ci
24+
chore
25+
revert
26+
release
27+
requireScope: false
28+
29+
lint-code-spell:
30+
name: Code Spell Check
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v4
34+
- uses: pnpm/action-setup@v4
35+
name: Install pnpm
36+
with:
37+
version: 9
38+
run_install: false
39+
- name: Setup Node.js 20
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version: 20
43+
cache: "pnpm"
44+
- name: Install dependencies
45+
run: pnpm install
46+
- name: Code Spell Check
47+
uses: streetsidesoftware/cspell-action@v6
48+
with:
49+
files: "**"
50+
config: .cspell.json
51+
strict: true
52+
verbose: true

0 commit comments

Comments
 (0)