Skip to content

Commit

Permalink
Merge pull request #16 from liviomendonca/lint-commits
Browse files Browse the repository at this point in the history
Add `commit` linting
  • Loading branch information
liviomendonca authored Sep 24, 2024
2 parents 3e40fec + daa3cc8 commit 5fa3877
Show file tree
Hide file tree
Showing 4 changed files with 927 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,18 @@ jobs:

- run: npm ci
- run: npm run lint:eslint:check

commitlint:
name: commitlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v4
with:
node-version: "lts/hydrogen"

- run: npm ci
- run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ["@commitlint/config-conventional"],
};
Loading

0 comments on commit 5fa3877

Please sign in to comment.