From a10ee198172ea30da2bd32639cd49fd4def551f0 Mon Sep 17 00:00:00 2001 From: Thomas Binu Thomas Date: Mon, 22 Jun 2026 14:38:33 +0000 Subject: [PATCH] feat(ci): added commit linting --- .github/workflows/_commit_msg.yml | 18 ++++++++++++++++++ .github/workflows/ci.yml | 8 +++++--- 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/_commit_msg.yml diff --git a/.github/workflows/_commit_msg.yml b/.github/workflows/_commit_msg.yml new file mode 100644 index 0000000..8bb4028 --- /dev/null +++ b/.github/workflows/_commit_msg.yml @@ -0,0 +1,18 @@ +name: commit-lint + +on: + workflow_call: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - name: Lint Commit Messages + uses: wagoid/commitlint-github-action@v6.2.1 + with: + failonWarnings: true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a318365..7f576ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,16 +5,18 @@ on: branches: - main tags: - - '*' + - "*" pull_request: jobs: - lint: uses: ./.github/workflows/_tox.yml with: tox: pre-commit,type-checking + commit-lint: + uses: ./.github/workflows/_commit_msg.yml + test: strategy: matrix: @@ -38,7 +40,7 @@ jobs: dist: uses: ./.github/workflows/_dist.yml - + release: needs: [dist, test] if: github.ref_type == 'tag'