Skip to content

Commit

Permalink
chore: update configuration of commitlint
Browse files Browse the repository at this point in the history
Signed-off-by: David Bernard <[email protected]>
  • Loading branch information
davidB committed Aug 8, 2024
1 parent 00f525e commit 9542c15
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ permissions:

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
branches: [ "main" ]
branches: ["main"]
workflow_dispatch:
inputs:
commit_sha:
Expand All @@ -29,9 +29,7 @@ jobs:
with:
fetch-depth: 0
- name: Check Commit Lint
with:
configFile: "./.commitlint.config.js"
uses: wagoid/[email protected]
uses: wagoid/commitlint-github-action@v6

lint_check:
name: Rust - lint_${{ matrix.lint_projects }}
Expand Down Expand Up @@ -63,14 +61,14 @@ jobs:
uses: actions/cache@v4
continue-on-error: false
with:
path: |
~/.cargo/bin
~/.cargo/registry
~/.cargo/git/db/
key: ${{ runner.os }}-sdk-rust-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-sdk-rust-
path: |
~/.cargo/bin
~/.cargo/registry
~/.cargo/git/db/
key: ${{ runner.os }}-sdk-rust-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-sdk-rust-
- name: Check cargo version
run: cargo --version
- name: Run ${{ matrix.lint_projects }}
run: make -f Makefile lint_${{ matrix.lint_projects }}
run: make -f Makefile lint_${{ matrix.lint_projects }}
8 changes: 4 additions & 4 deletions commitlint.config.js → commitlint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module.exports = {
export default {
parserPreset: 'conventional-changelog-conventionalcommits',
rules: {
'body-leading-blank': [1, 'always'],
'body-max-line-length': [2, 'always', 100],
'body-max-line-length': [2, 'always', 120],
'footer-leading-blank': [1, 'always'],
'footer-max-line-length': [2, 'always', 100],
'header-max-length': [2, 'always', 100],
'footer-max-line-length': [2, 'always', 120],
'header-max-length': [2, 'always', 120],
'subject-case': [
2,
'never',
Expand Down

0 comments on commit 9542c15

Please sign in to comment.