From 2929549673bba8034ebfb66b5405c90fbe25089c Mon Sep 17 00:00:00 2001 From: Samir Kamal <1954121+skamril@users.noreply.github.com> Date: Tue, 13 Feb 2024 16:15:07 +0100 Subject: [PATCH] test --- .github/workflows/commitlint.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/commitlint.yml diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml new file mode 100644 index 0000000000..408c95c0f9 --- /dev/null +++ b/.github/workflows/commitlint.yml @@ -0,0 +1,24 @@ +name: Commit Message Lint + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + commitlint: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 18.16.1 + + - name: Install dependencies + run: npm install @commitlint/{config-conventional,cli} + + - name: Lint commit messages + run: npx commitlint --from=main --to=$GITHUB_SHA --verbose \ No newline at end of file