Skip to content

Commit c3c521f

Browse files
committed
ci: add commitlint to the workflow for better code consistency
- Add commitlint to the workflow - Create commitlint.config.js file
1 parent 115b3c6 commit c3c521f

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/testing.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,11 @@ jobs:
3737
3838
- name: Upload coverage to Codecov
3939
uses: codecov/codecov-action@v3
40+
41+
commitlint:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v3
45+
with:
46+
fetch-depth: 0
47+
- uses: wagoid/commitlint-github-action@v5

commitlint.config.js

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

0 commit comments

Comments
 (0)