Skip to content

Commit

Permalink
feat(ci): added commitlint check
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroSuero committed May 8, 2024
1 parent d6810e3 commit 24e6ff9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: commitlint

on: [pull_request]

jobs:
lint-commits:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: npm install --save-dev @commitlint/{cli,config-conventional}
- run: |
echo "module.exports = { extends: ['@commitlint/config-conventional'] };" > commitlint.config.js
- run: npx commitlint --from HEAD~1 --to HEAD --verbose

0 comments on commit 24e6ff9

Please sign in to comment.