Skip to content

Commit 3f2f5d1

Browse files
authored
Merge pull request #17 from Bobagi/feat/lint-commits
feat: add commit lint
2 parents 669682b + 679b5f3 commit 3f2f5d1

File tree

4 files changed

+1407
-404
lines changed

4 files changed

+1407
-404
lines changed

.github/workflows/linting.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,8 @@ jobs:
1616
- run: npm ci
1717

1818
- run: npm run lint:prettier:check
19-
2019
eslint:
21-
name: Eslint
20+
name: EsLint
2221
runs-on: ubuntu-latest
2322
steps:
2423
- uses: actions/checkout@v4
@@ -30,3 +29,18 @@ jobs:
3029
- run: npm ci
3130

3231
- run: npm run lint:eslint:check
32+
commitlint:
33+
name: commitlint
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
with:
38+
fetch-depth: 0
39+
40+
- uses: actions/setup-node@v4
41+
with:
42+
node-version: "lts/hydrogen"
43+
44+
- run: npm ci
45+
46+
- run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose

commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: ["@commitlint/config-conventional"],
3+
};

0 commit comments

Comments
 (0)