exadel-inc/esl

View on GitHub
.github/workflows/commit.yml

Summary

Maintainability
Test Coverage
name: Commits

on:
  pull_request:

env:
  node-version: 20.x

jobs:
  validate-commit:
    name: Lint Messages
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - name: Use Node v${{ env.node-version }}
        uses: actions/setup-node@v4
        with:
          cache: 'npm'
          node-version: ${{ env.node-version }}
      - name: Install NPM Dependencies
        run: npm ci
      - name: Run Commit Lint
        uses: wagoid/commitlint-github-action@v6
        with:
          helpURL: 'https://github.com/exadel-inc/esl/blob/main/docs/COMMIT_CONVENTION.md'
        env:
          NODE_PATH: ${{ github.workspace }}/node_modules